Clean code

This commit is contained in:
Laurent Destailleur
2024-08-01 13:07:12 +02:00
parent 46eb5f83c2
commit 4fc272698f
2 changed files with 3 additions and 3 deletions

View File

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