]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return empty hints if no hcard in the html
authorEvan Prodromou <evan@status.net>
Fri, 19 Mar 2010 20:28:06 +0000 (15:28 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 19 Mar 2010 20:28:06 +0000 (15:28 -0500)
plugins/OStatus/lib/discoveryhints.php

index 1bb0ad2aea90e50ea4ee59915cc947e9ccd3bfb0..9102788e6fbe3488a68093fd30505c8e3abf9d97 100644 (file)
@@ -65,6 +65,10 @@ class DiscoveryHints {
     {
         $hcard = self::_hcard($body, $url);
 
+        if (empty($hcard)) {
+            return array();
+        }
+
         $hints = array();
 
         // XXX: don't copy stuff into an array and then copy it again