From 03c70eeb7da3447de52e6b0785f25af87ea7d6b6 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 10 Jun 2015 12:08:13 +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 38b9868df4..381b969b3d 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