Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Mar 1, 2022
1 parent f589ec1 commit d4735ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ protected function processCountryValue($country, &$result)
$result['format'] = $country['format'];
}
elseif (is_numeric($country)) {
$this->loadCountries();

if ($countryModel = $this->countriesCollection->find($country)) {
$result['country'] = $countryModel->country_name;
$result['format'] = $countryModel->format;
Expand Down

0 comments on commit d4735ba

Please sign in to comment.