Fix error

This commit is contained in:
Laurent Destailleur
2024-10-02 12:18:55 +02:00
parent 8bdd3fe3cd
commit b5730db759

View File

@@ -13336,7 +13336,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$errorstr = '', $noand =
{
global $db, $user;
if (is_null($filter) || $filter === '') {
if (is_null($filter) || is_array($filter) || $filter === '') {
return '';
}
if (!preg_match('/^\(.*\)$/', $filter)) { // If $filter does not start and end with ()