From b28c19d48d78f2589c10652bd16e4125f63f5d66 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Feb 2026 16:18:43 +0100 Subject: [PATCH] Fix sql syntax error --- htdocs/societe/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 8443d740d28..6be1ae5cc07 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -111,7 +111,7 @@ $search_vat = trim(GETPOST('search_vat', 'alpha')); $search_sale = ""; if (GETPOSTISARRAY('search_sale')) { $search_sale = GETPOST('search_sale', 'array:int'); -} elseif (GETPOSTISSET('search_sale')) { +} elseif (GETPOSTISSET('search_sale') && GETPOSTINT('search_sale') > 0) { $search_sale = array(GETPOSTINT('search_sale')); } $search_categ_cus = GETPOSTINT("search_categ_cus");