From: Evan Prodromou Date: Fri, 19 Mar 2010 20:28:06 +0000 (-0500) Subject: return empty hints if no hcard in the html X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5092f98c0d7a7db24189aaaf285b6670741fde39;p=quix0rs-gnu-social.git return empty hints if no hcard in the html --- diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php index 1bb0ad2aea..9102788e6f 100644 --- a/plugins/OStatus/lib/discoveryhints.php +++ b/plugins/OStatus/lib/discoveryhints.php @@ -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