X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/b70a3d7456c935ce66ccdbfffea7a4179bb8a29b..6cba8db7a811888e5f29708a50893ab6982b3181:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index a0e9717..b61796c 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -23,23 +23,53 @@ class Utils { __TITLE__ + + +
'; private $footer = '
'; @@ -224,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();