From d5e873f5497c782397907ed44a4cf82a4f24c912 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 5 Aug 2013 20:32:58 -0700 Subject: more error checking in case import_xchan fails --- include/socgraph.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/socgraph.php b/include/socgraph.php index bd952ef9b..d3477a2fe 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -118,7 +118,15 @@ function poco_load($xchan = '',$url = null) { if($j) import_xchan($j); } + $x = q("select xchan_hash from xchan where xchan_hash = '%s' limit 1", + dbesc($hash) + ); + if(! $x) + continue; + } + else + continue; } $r = q("select * from xlink where xlink_xchan = '%s' and xlink_link = '%s' limit 1", -- cgit v1.2.3