From 47a9bf14bb2058361ad5d1c342bbfef28b69914b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 19:56:06 +0000 Subject: [PATCH] bugfix --- htdocs/categories/categorie.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 4e5637006f1..ee173e719c0 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -462,11 +462,8 @@ class Categorie $sql = "SELECT count(c.rowid)"; $sql.= " FROM ".MAIN_DB_PREFIX."categorie as c, ".MAIN_DB_PREFIX."categorie_association as ca"; $sql.= " WHERE c.label = '".$label."'"; - if ($catmere!='' && $catmere > 0) - { $sql.= " AND c.rowid = ca.fk_categorie_fille"; $sql.= " AND ca.fk_categorie_mere = '".$catmere."'"; - } $res = $this->db->query ($sql); $res = $this->db->fetch_array ($res);