Merge pull request #24576 from grandoc/new_branch_24_04_2023

fix : Typo issue
This commit is contained in:
Laurent Destailleur 2023-04-24 16:15:38 +02:00 committed by GitHub
commit 5abe61b90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11550,7 +11550,7 @@ function forgeSQLFromUniversalSearchCriteria($filter, &$error = '')
$t = str_replace(array('and','or','AND','OR',' '), '', $t); // Remove the only strings allowed between each () criteria
// If the string result contains something else than '()', the syntax was wrong
if (preg_match('/[^\(\)]/', $t)) {
$error = 'Bad syntax of the search string, filter criteria is inhalited';
$error = 'Bad syntax of the search string, filter criteria is invalidated';
return '1 = 3'; // Bad syntax of the search string, we force a SQL not found
}