summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-21 13:15:08 -0700
committerBrion Vibber <brion@pobox.com>2010-05-21 13:15:08 -0700
commit6eae5d6a7e2265de4065b764c28cef3ee009bcda (patch)
tree05cc133095a73fb4e04ad921fbb8ae2a44ff7ba5 /plugins/OStatus
parentafd81a540a556ef04bdc326a26268dc82b0dc5f6 (diff)
parent87b8a89aa7b96e63586bdd3b1afb9d43355fd48b (diff)
Merge branch 'testing' into 0.9.x
Diffstat (limited to 'plugins/OStatus')
-rw-r--r--plugins/OStatus/lib/discoveryhints.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php
index ca54a0f5f..34c9be277 100644
--- a/plugins/OStatus/lib/discoveryhints.php
+++ b/plugins/OStatus/lib/discoveryhints.php
@@ -84,7 +84,7 @@ class DiscoveryHints {
$hints['fullname'] = implode(' ', $hcard['n']);
}
- if (array_key_exists('photo', $hcard)) {
+ if (array_key_exists('photo', $hcard) && count($hcard['photo'])) {
$hints['avatar'] = $hcard['photo'][0];
}