Skip to content

Commit

Permalink
Merge pull request #92 from watscho/patch-2
Browse files Browse the repository at this point in the history
Update Countries.php
  • Loading branch information
webpatser authored May 16, 2018
2 parents 2568394 + 1790eee commit f41444d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webpatser/Countries/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
protected function getCountries()
{
//Get the countries from the JSON file
if (sizeof($this->countries) == 0){
if (!$this->countries || sizeof($this->countries) == 0){
$this->countries = json_decode(file_get_contents(__DIR__ . '/Models/countries.json'), true);
}

Expand Down

0 comments on commit f41444d

Please sign in to comment.