Fix regression

This commit is contained in:
Laurent Destailleur
2024-08-02 16:48:01 +02:00
parent dd61bff4da
commit a7c7317d97

View File

@@ -13628,7 +13628,7 @@ function dolForgeCriteriaCallback($matches)
} else {
if (strtoupper($tmpescaped) == 'NULL') {
$tmpescaped = 'NULL';
} elseif (is_numeric((string) $tmpescaped)) {
} elseif (ctype_digit((string) $tmpescaped)) { // if only 0-9 chars, no .
$tmpescaped = (int) $tmpescaped;
} else {
$tmpescaped = (float) $tmpescaped;