summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2010-05-22 20:06:18 +1200
committerBrenda Wallace <shiny@cpan.org>2010-05-22 20:06:18 +1200
commitd7d49942f76a00fad2c23175cdc5b7c5a2973814 (patch)
tree1e82bab9b641272d473f9d3ff63c98d53b988960 /plugins/OStatus
parentfa4a2d34855da5eca29d81409cb5fbd64f13faba (diff)
parent6eae5d6a7e2265de4065b764c28cef3ee009bcda (diff)
Merge commit 'mainline/0.9.x' 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];
}