From: Brion Vibber Date: Wed, 3 Mar 2010 17:36:26 +0000 (-0800) Subject: Fix for hcard parsing: typo caused notice spew accessing unset array index X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3cea2430497e751bc7776fe3abf0603e2b55f8b;p=quix0rs-gnu-social.git Fix for hcard parsing: typo caused notice spew accessing unset array index --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 059c19e7c2..7ab031aa59 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]; }