Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur
2024-10-02 17:31:42 +02:00
13 changed files with 273 additions and 259 deletions

View File

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