Fix error

This commit is contained in:
Laurent Destailleur
2024-10-02 12:18:55 +02:00
parent 7f8a0860cf
commit 9c98e3816a

View File

@@ -13514,7 +13514,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 ()