Skip to content

Commit

Permalink
Merge pull request #337 from mesilov/335-add-helper-method-call-regis…
Browse files Browse the repository at this point in the history
…ter-result

add method isError - fix
  • Loading branch information
mesilov authored Feb 17, 2023
2 parents 72ce2e6 + 0fe12f1 commit 1ca7de6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 1ca7de6

Please sign in to comment.