X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FConfig%2FVariables.php;h=8de2b56787888e74393b7edd80dc3e747da6ee02;hb=c90a093af5607c80a76a7af50f76d2c1d5bf4f37;hp=0ea6b769ccc3355dbb7cc142abf92a5eb86e8ae7;hpb=c85b2f5ed1fe83d927c24e96ba9fd9a206adc6aa;p=civicrm-core.git diff --git a/CRM/Core/Config/Variables.php b/CRM/Core/Config/Variables.php index 0ea6b769cc..8de2b56787 100644 --- a/CRM/Core/Config/Variables.php +++ b/CRM/Core/Config/Variables.php @@ -1,9 +1,9 @@ provinceLimit)) { foreach ($this->provinceLimit 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 {