From 87b08669d74a31cb92face37d22c3a131526bd77 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 30 Jan 2024 10:10:52 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B06037=20-=20PHP=208.2:=20Migrate=20usage?= =?UTF-8?q?=20of=20strlen()=20with=20null=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/action.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/action.class.inc.php b/core/action.class.inc.php index 4777a0925..10660003a 100644 --- a/core/action.class.inc.php +++ b/core/action.class.inc.php @@ -369,7 +369,7 @@ class ActionEmail extends ActionNotification protected function FindRecipients($sRecipAttCode, $aArgs) { $sOQL = $this->Get($sRecipAttCode); - if (strlen($sOQL) === 0) return ''; + if (utils::IsNullOrEmptyString($sOQL)) return ''; try { @@ -413,7 +413,7 @@ class ActionEmail extends ActionNotification while ($oObj = $oSet->Fetch()) { $sAddress = trim($oObj->Get($sEmailAttCode)); - if (strlen($sAddress) > 0) + if (utils::IsNotNullOrEmptyString($sAddress)) { $aRecipients[] = $sAddress; $this->m_iRecipients++;