From 940833a66f512f54eaf58c206a067244d9e14ec8 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 27 Feb 2024 21:46:04 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07157=20-=20Fix=20trigger=20init=20to=20n?= =?UTF-8?q?ull=20when=20not=20passed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/action.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/action.class.inc.php b/core/action.class.inc.php index 285c09678..5bcb16318 100644 --- a/core/action.class.inc.php +++ b/core/action.class.inc.php @@ -433,7 +433,7 @@ class ActionEmail extends ActionNotification */ protected function FindRecipients($sRecipAttCode, $aArgs) { - $oTrigger = $aArgs['trigger->object()']; + $oTrigger = $aArgs['trigger->object()'] ?? null; $sOQL = $this->Get($sRecipAttCode); if (utils::IsNullOrEmptyString($sOQL)) return '';