diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index bfce7cdaef37..8386bcae815b 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -90,6 +90,11 @@ abstract class CRM_Import_Parser implements UserJobInterface { */ protected $statesByCountry = []; + /** + * @var int|null + */ + protected $siteDefaultCountry = NULL; + /** * @return int|null */ @@ -1954,7 +1959,7 @@ protected function getOddlyMappedMetadataFields(): array { * @return int */ protected function getSiteDefaultCountry(): int { - if (!isset($this->siteDefaultCountry)) { + if ($this->siteDefaultCountry === NULL) { $this->siteDefaultCountry = (int) Civi::settings()->get('defaultContactCountry'); } return $this->siteDefaultCountry;