From 235b0335608439b98d74a205a380d0f77baf6b4f Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Mar 2014 19:01:20 -0700 Subject: that should fix it. --- include/socgraph.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/socgraph.php') diff --git a/include/socgraph.php b/include/socgraph.php index 10d52da66..65e23f9df 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -62,6 +62,11 @@ function poco_load($xchan = '',$url = null) { $j = json_decode($s['body'],true); + if(! $j) { + logger('poco_load: unable to json_decode returned data.'); + return; + } + logger('poco_load: ' . print_r($j,true),LOGGER_DATA); if($xchan) { -- cgit v1.2.3