Skip to content

Commit

Permalink
feat: fix server errors with no internet connection or when the api i…
Browse files Browse the repository at this point in the history
…s down
  • Loading branch information
joelwmale committed Aug 29, 2023
1 parent 86322b2 commit 7904b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function loadFlags()
{
$payload = json_decode($this->localFlags(), true);

if (array_key_exists("detail", $payload)) {
if ($payload && array_key_exists("detail", $payload)) {
throw new Exception($payload["detail"]);
}

Expand Down

0 comments on commit 7904b3d

Please sign in to comment.