From a5baf2bc8810b2a4e9d25ae62472f8e55b0c4b27 Mon Sep 17 00:00:00 2001 From: atm-quentin Date: Wed, 26 Feb 2020 09:19:39 +0100 Subject: [PATCH] FIX search with '0' --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ed50e236ffe..2c3b29c73b0 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -7587,7 +7587,7 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0) $i3 = 0; foreach($tmpcrits as $tmpcrit) { - if(empty($tmpcrit)) continue; + if(!isset($tmpcrit)) continue; $newres .= (($i2 > 0 || $i3 > 0) ? ' OR ' : '');