Update list.php

This commit is contained in:
Laurent Destailleur 2021-09-01 18:35:19 +02:00 committed by GitHub
parent 66d1e5c74d
commit cc1ec0aad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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