diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 9468d979693..5b1daf118a9 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -87,7 +87,7 @@ if ($sall) { $sql.= " AND (c.ref LIKE '%".addslashes($sall)."%' OR c.note LIKE '%".addslashes($sall)."%')"; } -if (!empty($viewstatut)) +if ($viewstatut <> '') { if ($viewstatut < 4 && $viewstatut > -2) {