From 0779e0314e1a4a84253b3f710c5d06edb0b27650 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Mon, 6 Nov 2006 23:05:41 +0000 Subject: [PATCH] il y a d'autres tables que celles du core --- ecrire/inc/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index b9a67df4e8..e9ab862e17 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 -- GitLab