forked from extern/egroupware
fix PHP Warning: array_shift() expects parameter 1 to be array, null given
This commit is contained in:
parent
1d826e798a
commit
8ae20c34b9
@ -160,7 +160,7 @@ class Taglist extends Etemplate\Widget
|
||||
{
|
||||
self::set_validation_error($form_name,lang('Field must not be empty !!!',$value),'');
|
||||
}
|
||||
if(array_key_exists('multiple', $this->attrs) && $this->attrs['multiple'] == false)
|
||||
if(array_key_exists('multiple', $this->attrs) && $this->attrs['multiple'] == false && is_array($value))
|
||||
{
|
||||
$value = array_shift($value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user