bugfix
This commit is contained in:
parent
067dc95fae
commit
47a9bf14bb
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user