diff options
Diffstat (limited to 'ui/app/controllers/CControllerHost.php')
-rw-r--r-- | ui/app/controllers/CControllerHost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/controllers/CControllerHost.php b/ui/app/controllers/CControllerHost.php index 6d6b5f874bd..f07dbe47801 100644 --- a/ui/app/controllers/CControllerHost.php +++ b/ui/app/controllers/CControllerHost.php @@ -362,7 +362,7 @@ abstract class CControllerHost extends CController { * @return array */ protected function cleanInput(array $input): array { - if ($input['tags']) { + if (array_key_exists('tags', $input) && $input['tags']) { $input['tags'] = array_filter($input['tags'], function($tag) { return $tag['tag'] !== '' && $tag['value'] !== ''; }); |