mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
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),'');
|
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);
|
$value = array_shift($value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user