]> git.mxchange.org Git - friendica.git/commitdiff
more error handling
authorfriendica <info@friendica.com>
Sun, 1 Apr 2012 00:44:34 +0000 (17:44 -0700)
committerfriendica <info@friendica.com>
Sun, 1 Apr 2012 00:44:34 +0000 (17:44 -0700)
include/conversation.php
include/network.php

index a9fb807add3289067ed6725af2505b9df404e6c5..5a922b2b521619606e24da4df80d55be6510e8f5 100755 (executable)
@@ -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') {
 
index 22157ff1889ce6ef4cebb8df3e09cce902ae7fba..9e1ed2091d5d2f5429846ceeb9c6c600c159c39e 100755 (executable)
@@ -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();