From 78eab63cbe4aaf71c663ee71d50347dc3f4eb7c2 Mon Sep 17 00:00:00 2001 From: Sadashiv Dalvi Date: Tue, 12 Nov 2013 16:48:56 +0530 Subject: [PATCH] Fix for Undefined index: 1151 in CRM_Core_Config_Variables->countryLimit() --- 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 d295c1a872..71bd356b51 100644 --- a/CRM/Core/Config/Variables.php +++ b/CRM/Core/Config/Variables.php @@ -585,7 +585,12 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults { $country = array(); if (is_array($this->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 { -- 2.25.1