aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-05 20:32:58 -0700
committerfriendica <info@friendica.com>2013-08-05 20:32:58 -0700
commitd5e873f5497c782397907ed44a4cf82a4f24c912 (patch)
tree36ac970e7f19658a8df807213b6eedc3287fc5b4
parent18f8fcf9e72660f25c5761b56b8cc14b89c5ded4 (diff)
downloadvolse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.tar.gz
volse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.tar.bz2
volse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.zip
more error checking in case import_xchan fails
-rw-r--r--include/socgraph.php8
1 files changed, 8 insertions, 0 deletions
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",