From 840f130b4a3ad813c3e1b77b22c76a922fb2426c Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 25 Jun 2015 20:04:45 +0200 Subject: [PATCH] More functions for wblist page --- lib/utils.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 3f793a5..b61796c 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -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(); -- 2.39.2