Skip to content

Commit 8cbca0f

Browse files
committed
fix: correct variable naming and syntax errors in webhook actions
1 parent 6dc63b0 commit 8cbca0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core/Notification/Action/_ActionWebhook.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ protected function _DoExecute($oTrigger, $aContextArgs, &$oLog)
173173
}
174174

175175
// Errors during preparation
176-
if (!empty($this->m_aWebrequestErrors))
176+
if (!empty($this->aRequestErrors))
177177
{
178-
return 'Errors: '.implode(', ', $this->m_aWebrequestErrors);
178+
return 'Errors: '.implode(', ', $this->aRequestErrors);
179179
}
180180

181181
if ($this->IsBeingTested() && empty($oRequest->GetURL()))
@@ -197,7 +197,7 @@ protected function _DoExecute($oTrigger, $aContextArgs, &$oLog)
197197
case WebRequestSender::ENUM_SEND_STATE_PENDING:
198198
return 'Pending';
199199

200-
case WebRequestSender::ENUM_SEND_STATE_ERROR;
200+
case WebRequestSender::ENUM_SEND_STATE_ERROR:
201201
return 'Errors: '.implode(', ', $this->aRequestErrors);
202202
}
203203
}

0 commit comments

Comments
 (0)