From f5389a2d2d519248cf3ae1a13f5fbbfcda80df39 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Thu, 30 Jun 2022 15:12:59 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1=20compatibility:=20?= =?UTF-8?q?Replace=20strlen=20with=20Utils::StrLen=20to=20avoid=20null=20v?= =?UTF-8?q?alue=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CriterionConversion/criteriontooql.class.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/Application/Search/CriterionConversion/criteriontooql.class.inc.php b/sources/Application/Search/CriterionConversion/criteriontooql.class.inc.php index a3f61b8f5..d44358bcd 100644 --- a/sources/Application/Search/CriterionConversion/criteriontooql.class.inc.php +++ b/sources/Application/Search/CriterionConversion/criteriontooql.class.inc.php @@ -119,7 +119,7 @@ class CriterionToOQL extends CriterionConversionAbstract $aValues = self::GetValues($aCriteria); $sValue = self::GetValue($aValues, 0); - if (!Utils::StrLen($sValue)) { + if (!\Utils::StrLen($sValue)) { return "1"; } @@ -131,7 +131,7 @@ class CriterionToOQL extends CriterionConversionAbstract $aValues = self::GetValues($aCriteria); $sValue = self::GetValue($aValues, 0); - if (!Utils::StrLen($sValue)) { + if (!\Utils::StrLen($sValue)) { return "1"; } @@ -143,7 +143,7 @@ class CriterionToOQL extends CriterionConversionAbstract $aValues = self::GetValues($aCriteria); $sValue = self::GetValue($aValues, 0); - if (!Utils::StrLen($sValue)) { + if (!\Utils::StrLen($sValue)) { return "1"; } @@ -159,7 +159,7 @@ class CriterionToOQL extends CriterionConversionAbstract return "({$sRef} = '0')"; } - if (!Utils::StrLen($sValue) && (!(isset($aCriteria['has_undefined'])) || !($aCriteria['has_undefined']))) { + if (!\Utils::StrLen($sValue) && (!(isset($aCriteria['has_undefined'])) || !($aCriteria['has_undefined']))) { return "1"; } @@ -171,7 +171,7 @@ class CriterionToOQL extends CriterionConversionAbstract $aValues = self::GetValues($aCriteria); $sValue = self::GetValue($aValues, 0); - if (!Utils::StrLen($sValue)) { + if (!\Utils::StrLen($sValue)) { return "1"; } @@ -186,7 +186,7 @@ class CriterionToOQL extends CriterionConversionAbstract for($i = 0; $i < count($aValues); $i++) { $sRawValue = self::GetValue($aValues, $i); - if (!Utils::StrLen($sRawValue)) { + if (!\Utils::StrLen($sRawValue)) { $bHasUnDefined = true; } else { $aRawValues[] = $sRawValue;