From ebafea1dcbc205fc40027c3b434239c98276431c Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 4 Mar 2013 08:43:42 -0800 Subject: [PATCH] fix CRM-12007 --- CRM/Core/Config/Variables.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {