Skip to content

Commit

Permalink
Fix one test
Browse files Browse the repository at this point in the history
  • Loading branch information
KerryJones committed Jul 16, 2024
1 parent 38676c8 commit 9f5fd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClientBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function execute($method, array $arguments = []): object

$response = json_decode($json_response);

if($response->s === 'error') {
if(isset($response->s) && $response->s === 'error') {
throw new ApiException(message: $response->errmsg, response: $response);
}

Expand Down

0 comments on commit 9f5fd47

Please sign in to comment.