Fix for hcard parsing: typo caused notice spew accessing unset array index

This commit is contained in:
Brion Vibber 2010-03-03 09:36:26 -08:00
parent 9801c60bea
commit f3cea24304
1 changed files with 1 additions and 1 deletions

View 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];
}