Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle committed Apr 19, 2015
1 parent f1fec81 commit 8ea2712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SickBeard.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,12 +750,12 @@ private function _request($params)
{
$array = json_decode($body, true);

if(isset($array->result) && $array->result != 'success')
if(isset($array['result']) && $array['result'] != 'success')
{
throw new \Exception($array->message);
throw new \Exception($array['message']);
}

return $array->data;
return $array['data'];
}
else
{
Expand Down

0 comments on commit 8ea2712

Please sign in to comment.