diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index cd6647fdf7a..7c46aa73abe 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -12093,7 +12093,7 @@ function dol_eval_standard($s, $hideerrors = 1, $onlysimplestring = '1') $matches = array(); preg_match_all($pattern, $s, $matches); - if (!empty($matches)) { + if (count($matches)) { foreach ($matches[1] as $m) { $m = trim($m); if (empty($m)) {