Skip to content

Commit

Permalink
Merge pull request TelegramBot#8 from roozbeh360/master
Browse files Browse the repository at this point in the history
check array key by isset
  • Loading branch information
iGusev committed Sep 22, 2015
2 parents 6c5f80d + b7fbb99 commit 203b58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BotApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function call($method, array $data = null)
$response = $this->executeCurl($options);

if ($this->returnArray) {
if (!$response['ok']) {
if (!isset($response['ok'])) {
throw new Exception($response['description'], $response['error_code']);
}

Expand Down

0 comments on commit 203b58f

Please sign in to comment.