diff --git a/CRM/Core/Config/Variables.php b/CRM/Core/Config/Variables.php index 7bf59da8afd3..f92f643c0857 100644 --- a/CRM/Core/Config/Variables.php +++ b/CRM/Core/Config/Variables.php @@ -544,7 +544,12 @@ public function countryLimit() { $country = array(); if (is_array($this->countryLimit)) { foreach ($this->countryLimit as $val) { - $country[] = $countryIsoCodes[$val]; + // CRM-12007 + // some countries have disappeared and hence they might be in country limit + // but not in the country table + if (isset($countryIsoCodes[$val])) { + $country[] = $countryIsoCodes[$val]; + } } } else {