From aa8cebd60a786c9355a8ec4ef9d5f38ceafc394e Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 10 Jun 2015 11:34:41 +0530 Subject: [PATCH] CRM-16648 - Notice: Undefined index: label/description in CRM_Core_OptionGroup --- CRM/Core/OptionGroup.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CRM/Core/OptionGroup.php b/CRM/Core/OptionGroup.php index 7770090bd2..c0c1101fbc 100644 --- a/CRM/Core/OptionGroup.php +++ b/CRM/Core/OptionGroup.php @@ -631,12 +631,9 @@ WHERE v.option_group_id = g.id 'description', ) as $fld) { $row[$fld] = $dao->$fld; - } - } - - if ($localize) { - foreach (array('label', 'description') as $f) { - $row[$f] = ts($row[$f]); + if ($localize && in_array($fld, array('label', 'description'))) { + $row[$fld] = ts($row[$fld]); + } } } -- 2.25.1