From e479603569c437a6f4b9c62b022831683505d0f4 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 3 Jan 2007 11:12:05 +0000 Subject: [PATCH] Bugfix --- htdocs/product.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 6d3c2b0b2ca..a8f00593334 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -1108,11 +1108,12 @@ class Product { $sql.= " AND c.fk_soc = ".$socid; } - if (isset($filtrestatut)) + + if ($filtrestatut <> '') { $sql.= " AND c.fk_statut = ".$filtrestatut; } - + $result = $this->db->query($sql) ; if ( $result ) {