1
0
Fork 0
mirror of synced 2024-06-30 20:21:16 +12:00

Use uppercase countryCode

This commit is contained in:
kodumbeats 2021-03-09 06:03:42 -05:00
parent c87a1165f6
commit ed447986ea

View file

@ -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);