]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
More functions for wblist page
[qtadmin.git] / lib / utils.inc.php
index 3f793a5a75a49b39e843c40d963515e351ee1f77..b61796c1d2d20f7f0be8c9157abdaaab199b50ee 100644 (file)
@@ -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();
This page took 0.028687 seconds and 5 git commands to generate.