Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Update PaladinsAPI.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSH authored Feb 8, 2019
1 parent 9867fee commit 7d6529f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PaladinsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ private function makeRequest(string $url, int $maxTries = null, int $tries = nul

$body = json_decode($response->getBody(), true);

if (isset($body['ret_msg']) && strpos(strtolower($body['ret_msg']), 'invalid signature') >= 0) {
if (isset($body['ret_msg'])) {
if ($tries < $maxTries) {
$this->makeRequest($url, $maxTries, ($tries + 1));
} else {
Expand Down

0 comments on commit 7d6529f

Please sign in to comment.