From 50c5fa2034f76b2e981de186f4893aa1650d0c77 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 13 Nov 2007 08:45:45 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20on=20affiche=20que=20les=20cat=E9gories?= =?UTF-8?q?=20de=20produits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/oscommerce_ws/produits/categories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/oscommerce_ws/produits/categories.php b/htdocs/oscommerce_ws/produits/categories.php index a3da5f843ed..b255e15869d 100644 --- a/htdocs/oscommerce_ws/produits/categories.php +++ b/htdocs/oscommerce_ws/produits/categories.php @@ -215,8 +215,8 @@ else $offset = $limit * $page ; $sql = "SELECT c.label, c.rowid dolicatid, oc.osccatid FROM ".MAIN_DB_PREFIX."categorie as c "; - $sql .= "LEFT OUTER JOIN llx_osc_categories as oc ON oc.dolicatid = c.rowid "; - $sql .= "WHERE c.visible = 1"; + $sql .= "LEFT OUTER JOIN ".MAIN_DB_PREFIX."osc_categories as oc ON oc.dolicatid = c.rowid "; + $sql .= "WHERE c.visible = 1 AND c.type = 0"; print_barre_liste("Correspondance des catégories", $page, "categories.php");