From 182139d740dc67d7399b04d858e9f377a00dd9e0 Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Tue, 27 Oct 2009 11:24:48 +0000
Subject: [PATCH] Fix: utile pour brouillon

---
 htdocs/commande/liste.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 	{
-- 
GitLab