From 8ae20c34b93369aa9f52550de83cb6d863b2bc48 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 19 Oct 2018 13:55:23 +0200 Subject: [PATCH] fix PHP Warning: array_shift() expects parameter 1 to be array, null given --- api/src/Etemplate/Widget/Taglist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Taglist.php b/api/src/Etemplate/Widget/Taglist.php index 5614f7fb22..5c5904b406 100644 --- a/api/src/Etemplate/Widget/Taglist.php +++ b/api/src/Etemplate/Widget/Taglist.php @@ -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); }