1
0
Fork 0
mirror of synced 2024-06-23 08:40:58 +12:00

fix typo in countrycode

This commit is contained in:
Torsten Dittmann 2021-03-12 17:10:51 +01:00
parent 7ebc7f750f
commit feda2fd787

View file

@ -205,8 +205,8 @@ App::get('/v1/users/:userId/sessions')
continue;
}
$token->setAttribute('countryName', (isset($countries[strtoupper($token->getAttribute('contryCode'))]))
? $countries[strtoupper($token->getAttribute('contryCode'))]
$token->setAttribute('countryName', (isset($countries[strtoupper($token->getAttribute('countryCode'))]))
? $countries[strtoupper($token->getAttribute('countryCode'))]
: $locale->getText('locale.country.unknown'));
$token->setAttribute('current', false);