Skip to content

Commit

Permalink
- improved error handling for getUniverseSystemData()
Browse files Browse the repository at this point in the history
  • Loading branch information
exodus4d committed Jun 22, 2018
1 parent fb9da7c commit d409a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ESI.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public function getUniverseSystemData(int $systemId) : array {
$systemData = [];
$response = $this->request($url, 'GET');

if( !empty($response) ){
if( !$response->error && !empty($response) ){
$systemData = (new namespace\Mapper\System($response))->getData();
}

Expand Down

0 comments on commit d409a6b

Please sign in to comment.