mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 19:18:22 +01:00
Fix error
This commit is contained in:
@@ -13514,7 +13514,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$errorstr = '', $noand =
|
|||||||
{
|
{
|
||||||
global $db, $user;
|
global $db, $user;
|
||||||
|
|
||||||
if (is_null($filter) || $filter === '') {
|
if (is_null($filter) || is_array($filter) || $filter === '') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (!preg_match('/^\(.*\)$/', $filter)) { // If $filter does not start and end with ()
|
if (!preg_match('/^\(.*\)$/', $filter)) { // If $filter does not start and end with ()
|
||||||
|
|||||||
Reference in New Issue
Block a user