Skip to content

Commit

Permalink
fix response is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanson committed Dec 11, 2018
1 parent d205101 commit ce0a6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function request($method, $params = [], $files = [])
return $this->errorResponse($result);
}

return Helper::toNull($result['response']);
return $result['response'] ? Helper::toNull($result['response']) : $result['response'];
}

public function errorResponse(array $result)
Expand Down

0 comments on commit ce0a6f9

Please sign in to comment.