Commits

Anonymous committed 684546f

Add support for php w/o json funct

Comments (0)

Files changed (1)

       }
       fclose($fs);
       
+      // fix for missing json funct
+      if(!function_exists('json_decode'))
+      {
+        self::$ee->load->library('Services_Json');
+      }
+      
       $response = explode("\r\n\r\n", $response, 2);
       $return   = json_decode(trim($response[1]), TRUE);