From: Jon goldberg Date: Tue, 23 Aug 2016 20:39:39 +0000 (-0400) Subject: CRM-19257 - Fix PHP warning when browsing custom field multiple choice options X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=614ff00eaabb8bceb1d1d271eab9e321da3d06c1;p=civicrm-core.git CRM-19257 - Fix PHP warning when browsing custom field multiple choice options --- diff --git a/CRM/Core/BAO/CustomOption.php b/CRM/Core/BAO/CustomOption.php index 12e708f219..6ddb378943 100644 --- a/CRM/Core/BAO/CustomOption.php +++ b/CRM/Core/BAO/CustomOption.php @@ -144,7 +144,7 @@ class CRM_Core_BAO_CustomOption { $action -= CRM_Core_Action::DISABLE; } if (in_array($field->html_type, array('CheckBox', 'AdvMulti-Select', 'Multi-Select'))) { - if (in_array($dao->value, $defVal)) { + if (isset($defVal) && in_array($dao->value, $defVal)) { $options[$dao->id]['is_default'] = ''; } else {