Use uppercase countryCode
This commit is contained in:
parent
c87a1165f6
commit
ed447986ea
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ App::get('/v1/users/:userId/sessions')
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$token->setAttribute('countryName', (isset($countries[$token->getAttribute('contryCode')]))
|
$token->setAttribute('countryName', (isset($countries[strtoupper($token->getAttribute('contryCode'))]))
|
||||||
? $countries[$token->getAttribute('contryCode')]
|
? $countries[strtoupper($token->getAttribute('contryCode'))]
|
||||||
: $locale->getText('locale.country.unknown'));
|
: $locale->getText('locale.country.unknown'));
|
||||||
$token->setAttribute('current', false);
|
$token->setAttribute('current', false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue