FIX select of category

FIX pb with extrafield list and key '0'
This commit is contained in:
Laurent Destailleur
2017-08-24 13:23:15 +02:00
parent 17f44ad980
commit 7da6f93d7e
8 changed files with 57 additions and 37 deletions

View File

@@ -6264,7 +6264,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
$newres .= $db->escape($tmpcrit2);
$newres .= $tmpafter;
$newres .= "'";
if (empty($tmpcrit2))
if ($tmpcrit2 == '')
{
$newres .= ' OR ' . $field . " IS NULL";
}