From 2e4fe381bc93647da8ec93016e6b96d087776185 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Tue, 13 Jul 2004 13:40:55 +0000 Subject: [PATCH] =?UTF-8?q?AS=20types=20interdit=20en=20MySQL4;=20renomm?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_documents.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecrire/inc_documents.php3 b/ecrire/inc_documents.php3 index 7b72a1337f..43e204408b 100644 --- a/ecrire/inc_documents.php3 +++ b/ecrire/inc_documents.php3 @@ -473,10 +473,10 @@ function afficher_documents_non_inclus($id_article, $type = "article", $flag_mod // Afficher portfolio ///////// - $query = "SELECT docs.* FROM spip_documents AS docs, spip_documents_".$type."s AS l, spip_types_documents AS types ". + $query = "SELECT docs.* FROM spip_documents AS docs, spip_documents_".$type."s AS l, spip_types_documents AS lestypes ". "WHERE l.id_$type=$id_article AND l.id_document=docs.id_document ". "AND docs.mode='document'". - " AND docs.id_type=types.id_type AND types.extension IN ('gif', 'jpg', 'png')"; + " AND docs.id_type=lestypes.id_type AND lestypes.extension IN ('gif', 'jpg', 'png')"; if ($id_doublons['documents']) $query .= " AND docs.id_document NOT IN (".$id_doublons['documents'].") "; $query .= " ORDER BY docs.id_document"; -- GitLab