From 36d1ff7f05188968f65e2d856d324d4401fbf080 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 18 Nov 2013 08:59:25 -0800 Subject: [PATCH] CRM-13788 - Another place to check if array index is set - Field.php http://issues.civicrm.org/jira/browse/CRM-13788 --- CRM/Custom/Form/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Custom/Form/Field.php b/CRM/Custom/Form/Field.php index 36b272d494..3c9d4b83df 100644 --- a/CRM/Custom/Form/Field.php +++ b/CRM/Custom/Form/Field.php @@ -694,7 +694,7 @@ SELECT count(*) } $optionFields = array('Select', 'Multi-Select', 'CheckBox', 'Radio', 'AdvMulti-Select'); - if ($fields['option_type'] == 1) { + if (isset($fields['option_type']) && $fields['option_type'] == 1) { //capture duplicate Custom option values if (!empty($fields['option_value'])) { $countValue = count($fields['option_value']); -- 2.25.1