diff options
author | friendica <info@friendica.com> | 2013-08-05 20:32:58 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-05 20:32:58 -0700 |
commit | d5e873f5497c782397907ed44a4cf82a4f24c912 (patch) | |
tree | 36ac970e7f19658a8df807213b6eedc3287fc5b4 /include | |
parent | 18f8fcf9e72660f25c5761b56b8cc14b89c5ded4 (diff) | |
download | volse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.tar.gz volse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.tar.bz2 volse-hubzilla-d5e873f5497c782397907ed44a4cf82a4f24c912.zip |
more error checking in case import_xchan fails
Diffstat (limited to 'include')
-rw-r--r-- | include/socgraph.php | 8 |
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", |