summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-03 09:36:26 -0800
committerBrion Vibber <brion@pobox.com>2010-03-03 09:36:26 -0800
commitf3cea2430497e751bc7776fe3abf0603e2b55f8b (patch)
tree33c80d7e7f2d09c338aa3d89b1ba292905e01bba /plugins/OStatus
parent9801c60bea121f96d3e8d4ae7b8e31d2c29b280d (diff)
Fix for hcard parsing: typo caused notice spew accessing unset array index
Diffstat (limited to 'plugins/OStatus')
-rw-r--r--plugins/OStatus/classes/Ostatus_profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php
index 059c19e7c..7ab031aa5 100644
--- a/plugins/OStatus/classes/Ostatus_profile.php
+++ b/plugins/OStatus/classes/Ostatus_profile.php
@@ -1500,7 +1500,7 @@ class Ostatus_profile extends Memcached_DataObject
if (array_key_exists('url', $hcard)) {
if (is_string($hcard['url'])) {
$hints['homepage'] = $hcard['url'];
- } else if (is_array($hcard['adr'])) {
+ } else if (is_array($hcard['url'])) {
// HACK get the last one; that's how our hcards look
$hints['homepage'] = $hcard['url'][count($hcard['url'])-1];
}