Fix multiple attribute not set in template was handled as false on server

This commit is contained in:
Nathan Gray 2016-03-14 15:24:17 +00:00
parent a449b5e93b
commit d87e280bf9

View File

@ -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);
}