1
0
Fork 0

more error handling

This commit is contained in:
friendica 2012-03-31 17:44:34 -07:00
parent 2147e0a71f
commit e6fd6bfd89
2 changed files with 4 additions and 1 deletions

View file

@ -250,7 +250,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$threads = array();
$threadsid = -1;
if(count($items)) {
if($items && count($items)) {
if($mode === 'network-new' || $mode === 'search' || $mode === 'community') {

View file

@ -364,6 +364,9 @@ function lrdd($uri, $debug = false) {
logger('lrdd: host_meta: ' . $xml, LOGGER_DATA);
if(! stristr($xml,'<xrd'))
return array();
$h = parse_xml_string($xml);
if(! $h)
return array();