more error checking in case import_xchan fails

This commit is contained in:
friendica 2013-08-05 20:32:58 -07:00
parent 18f8fcf9e7
commit d5e873f549

View File

@ -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",