From 03412e2fe2854784acb602c5edee757552a9b08f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 7 Mar 2014 21:25:47 -0500 Subject: [PATCH] CRM_Core_Form::add - don't mess with non-arrays --- CRM/Core/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 1cc85bf9cd..767cc9dd8c 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -223,7 +223,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $attributes = '', $required = FALSE, $extra = NULL ) { // Normalize this property - if ($type == 'select' && !empty($extra['multiple'])) { + if ($type == 'select' && is_array($extra) && !empty($extra['multiple'])) { $extra['multiple'] = 'multiple'; } $element = $this->addElement($type, $name, $label, $attributes, $extra); -- 2.25.1