fix CRM-12007
authorDonald A. Lobo <lobo@civicrm.org>
Mon, 4 Mar 2013 16:43:42 +0000 (08:43 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Mon, 4 Mar 2013 16:43:42 +0000 (08:43 -0800)
CRM/Core/Config/Variables.php

index 7bf59da8afd36f6d32e2a5fba084642721ff1122..f92f643c08572604341d38537f7ffb7af299d819 100644 (file)
@@ -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 {