From d87e280bf9da744e42d3b5f6b4cad7937466e624 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 14 Mar 2016 15:24:17 +0000 Subject: [PATCH] Fix multiple attribute not set in template was handled as false on server --- etemplate/inc/class.etemplate_widget_taglist.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_taglist.inc.php b/etemplate/inc/class.etemplate_widget_taglist.inc.php index c5623c5153..8167738ac7 100644 --- a/etemplate/inc/class.etemplate_widget_taglist.inc.php +++ b/etemplate/inc/class.etemplate_widget_taglist.inc.php @@ -132,7 +132,7 @@ class etemplate_widget_taglist extends etemplate_widget { self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),''); } - if($this->attrs['multiple'] == false) + if(array_key_exists('multiple', $this->attrs) && $this->attrs['multiple'] == false) { $value = array_shift($value); }