From 8cbca0f3c135519388942698b39f2650a95a1135 Mon Sep 17 00:00:00 2001 From: ritoban23 Date: Thu, 30 Oct 2025 13:17:05 +0530 Subject: [PATCH] fix: correct variable naming and syntax errors in webhook actions --- src/Core/Notification/Action/_ActionWebhook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Notification/Action/_ActionWebhook.php b/src/Core/Notification/Action/_ActionWebhook.php index cfdf2f1..dc7dafd 100644 --- a/src/Core/Notification/Action/_ActionWebhook.php +++ b/src/Core/Notification/Action/_ActionWebhook.php @@ -173,9 +173,9 @@ protected function _DoExecute($oTrigger, $aContextArgs, &$oLog) } // Errors during preparation - if (!empty($this->m_aWebrequestErrors)) + if (!empty($this->aRequestErrors)) { - return 'Errors: '.implode(', ', $this->m_aWebrequestErrors); + return 'Errors: '.implode(', ', $this->aRequestErrors); } if ($this->IsBeingTested() && empty($oRequest->GetURL())) @@ -197,7 +197,7 @@ protected function _DoExecute($oTrigger, $aContextArgs, &$oLog) case WebRequestSender::ENUM_SEND_STATE_PENDING: return 'Pending'; - case WebRequestSender::ENUM_SEND_STATE_ERROR; + case WebRequestSender::ENUM_SEND_STATE_ERROR: return 'Errors: '.implode(', ', $this->aRequestErrors); } }