From: Donald A. Lobo Date: Mon, 4 Mar 2013 16:43:42 +0000 (-0800) Subject: fix CRM-12007 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ebafea1dcbc205fc40027c3b434239c98276431c;p=civicrm-core.git fix CRM-12007 --- diff --git a/CRM/Core/Config/Variables.php b/CRM/Core/Config/Variables.php index 7bf59da8af..f92f643c08 100644 --- a/CRM/Core/Config/Variables.php +++ b/CRM/Core/Config/Variables.php @@ -544,7 +544,12 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults { $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 {