summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/OStatus/lib/discoveryhints.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php
index 1bb0ad2ae..9102788e6 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