diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index b9a67df4e8efc2ee3ae916da5acb46da0fd95cda..e9ab862e17a6e00a9525db319f5da932a1b77f4e 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -461,7 +461,7 @@ function table_objet($type) { 'syndic_article' => 'syndic_articles', 'type_document' => 'types_documents' # hum ); - return $surnoms[$type]; + return isset($surnoms[$type]) ? $surnoms[$type] : $type."s"; } // http://doc.spip.org/@id_table_objet