Browse Source

more error handling

pull/194/merge
friendica 10 years ago
parent
commit
e6fd6bfd89
  1. 2
      include/conversation.php
  2. 3
      include/network.php

2
include/conversation.php

@ -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') {

3
include/network.php

@ -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();

Loading…
Cancel
Save