fix: php8.0 warnings

This commit is contained in:
lmarcouiller
2022-06-02 11:14:35 +02:00
parent 43dedcb2b1
commit 0bad3664fb
5 changed files with 15 additions and 1 deletions

View File

@@ -9326,7 +9326,7 @@ function natural_search($fields, $value, $mode = 0, $nofirstand = 0)
$reg = array();
preg_match('/([<>=]+)/', $crit, $reg);
if ($reg[1]) {
if (!empty($reg[1])) {
$operator = $reg[1];
}
if ($newcrit != '') {