mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix error
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user