Fix: si aucun fournisseur les stats n'affichait rien

nettoyage du code
This commit is contained in:
Regis Houssin
2007-10-10 21:48:05 +00:00
parent dea059ef71
commit 786ccfe6be
4 changed files with 1 additions and 11 deletions

View File

@@ -2291,9 +2291,6 @@ class Commande extends CommonObject
{
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_product as cp ON cp.fk_product = co.rowid";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cp.fk_categorie = c.rowid";
}
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
{
$sql.= " WHERE IFNULL(c.visible,1)=1";
}
$resql=$this->db->query($sql);