Skip to content

Commit

Permalink
Return an array instead of an object
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle committed Apr 19, 2015
1 parent 90be0d3 commit f1fec81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SickBeard.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ private function _request($params)

if(strpos($contentType, 'json') !== false)
{
$array = json_decode($body);
$array = json_decode($body, true);

if(isset($array->result) && $array->result != 'success')
{
Expand Down

0 comments on commit f1fec81

Please sign in to comment.