summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-19 15:28:06 -0500
committerEvan Prodromou <evan@status.net>2010-03-19 15:28:06 -0500
commit5092f98c0d7a7db24189aaaf285b6670741fde39 (patch)
treec94b8c734215dce0a58ea359c118dd7b528310fa /plugins
parent1e03968d911fe4bc757c01036365a5f544621088 (diff)
return empty hints if no hcard in the html
Diffstat (limited to 'plugins')
-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