From 067dc95fae7851d26a51ae31b19b974282becdca Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Feb 2006 19:32:17 +0000 Subject: [PATCH] bugfix --- htdocs/categories/categorie.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 864037e2aef..4e5637006f1 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -462,7 +462,7 @@ 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) + if ($catmere!='' && $catmere > 0) { $sql.= " AND c.rowid = ca.fk_categorie_fille"; $sql.= " AND ca.fk_categorie_mere = '".$catmere."'";