X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/65ff42aeaa163cd32fcd953c63f5843a6b966daf..840f130b4a3ad813c3e1b77b22c76a922fb2426c:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 62c3be2..b61796c 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -25,51 +25,51 @@ class Utils { -
'; +
'; private $footer = '
'; @@ -254,7 +254,11 @@ class Utils { } else { // HTTP GET $data = json_decode($response['content']); - $result = $data->data; + if (is_object($data)) { + $result = $data->data; + } else { + $result = array('No result'); + } } } else { $result = ($data) ? false : array();