]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for hcard parsing: typo caused notice spew accessing unset array index
authorBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 17:36:26 +0000 (09:36 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 3 Mar 2010 17:36:26 +0000 (09:36 -0800)
plugins/OStatus/classes/Ostatus_profile.php

index 059c19e7c27af12a6b62990c46744b193155278d..7ab031aa59d289e5372dedffd69977a285af7780 100644 (file)
@@ -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];
             }