From f1fec815f1328c28302fad733d772d63249d3ebf Mon Sep 17 00:00:00 2001 From: Jleagle Date: Sun, 19 Apr 2015 21:21:15 +0100 Subject: [PATCH] Return an array instead of an object --- src/SickBeard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SickBeard.php b/src/SickBeard.php index 2bed060..6545adf 100644 --- a/src/SickBeard.php +++ b/src/SickBeard.php @@ -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') {