Skip to content

Commit

Permalink
Merge pull request #220 from mesilov/issue#217
Browse files Browse the repository at this point in the history
fix error
  • Loading branch information
camaxtly authored Jun 10, 2021
2 parents c2841a4 + 8b6426d commit 1f8b3af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bitrix24.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function setOnExpiredToken(callable $callback)
*/
public function setOnCallApiMethod(callable $callback)
{
$this->_onCallApiMothod = $callback;
$this->_onCallApiMethod = $callback;
}

/**
Expand Down Expand Up @@ -1132,8 +1132,8 @@ public function call($methodName, array $additionalParameters = array())
$result = $this->getWebhookUsage() ? $this->_call_webhook($methodName, $additionalParameters)
: $this->_call($methodName, $additionalParameters);

if (is_callable($this->_onCallApiMothod)) {
call_user_func($this->_onCallApiMothod, $this, $methodName);
if (is_callable($this->_onCallApiMethod)) {
call_user_func($this->_onCallApiMethod, $this, $methodName);
}

} catch (Bitrix24TokenIsExpiredException $e) {
Expand Down

0 comments on commit 1f8b3af

Please sign in to comment.