Check that the value is not an array

This commit is contained in:
Florian 2021-10-24 00:26:28 +02:00 committed by Thomas Negre
parent 7ed6ca6ec6
commit aa2a57ff95

View File

@ -391,7 +391,7 @@ foreach ($search as $key => $val) {
continue;
}
$mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
if ($search[$key] != '' && !empty($val)) {
if ($search[$key] != '' && !is_array($val)) {
$sql .= natural_search($key, $search[$key], $mode_search);
}
}