From 0fe12f11bbbd9a5672153879650cc127cf22d9d6 Mon Sep 17 00:00:00 2001 From: mesilov Date: Sat, 18 Feb 2023 00:00:09 +0400 Subject: [PATCH] add method isError - fix Signed-off-by: mesilov --- .../Telephony/Result/ExternalCallRegisterItemResult.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Services/Telephony/Result/ExternalCallRegisterItemResult.php b/src/Services/Telephony/Result/ExternalCallRegisterItemResult.php index ef2759a1..9b4796d5 100644 --- a/src/Services/Telephony/Result/ExternalCallRegisterItemResult.php +++ b/src/Services/Telephony/Result/ExternalCallRegisterItemResult.php @@ -32,6 +32,9 @@ class ExternalCallRegisterItemResult extends AbstractItem */ public function isError(): bool { + if (!$this->isKeyExists('LEAD_CREATION_ERROR')) { + return false; + } return $this->data['LEAD_CREATION_ERROR'] !== '' && $this->data['LEAD_CREATION_ERROR'] !== null; } } \ No newline at end of file