CRM-13788 - Another place to check if array index is set - Field.php
authorDonald A. Lobo <lobo@civicrm.org>
Mon, 18 Nov 2013 16:59:25 +0000 (08:59 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Mon, 18 Nov 2013 16:59:25 +0000 (08:59 -0800)
http://issues.civicrm.org/jira/browse/CRM-13788

CRM/Custom/Form/Field.php

index 36b272d494b05caec990112151a69eee318f96d2..3c9d4b83df9bc34ed7462ac51bc73b978d785ca3 100644 (file)
@@ -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']);