diff options
-rw-r--r-- | ui/app/controllers/CControllerHost.php | 2 | ||||
-rw-r--r-- | ui/app/controllers/CControllerProblem.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/controllers/CControllerHost.php b/ui/app/controllers/CControllerHost.php index f07dbe47801..fa2e2463f5e 100644 --- a/ui/app/controllers/CControllerHost.php +++ b/ui/app/controllers/CControllerHost.php @@ -364,7 +364,7 @@ abstract class CControllerHost extends CController { protected function cleanInput(array $input): array { if (array_key_exists('tags', $input) && $input['tags']) { $input['tags'] = array_filter($input['tags'], function($tag) { - return $tag['tag'] !== '' && $tag['value'] !== ''; + return !($tag['tag'] === '' && $tag['value'] === ''); }); } diff --git a/ui/app/controllers/CControllerProblem.php b/ui/app/controllers/CControllerProblem.php index f1759806d2a..992ade5e41b 100644 --- a/ui/app/controllers/CControllerProblem.php +++ b/ui/app/controllers/CControllerProblem.php @@ -158,7 +158,7 @@ abstract class CControllerProblem extends CController { protected function cleanInput(array $input): array { if (array_key_exists('tags', $input) && $input['tags']) { $input['tags'] = array_filter($input['tags'], function($tag) { - return $tag['tag'] !== '' && $tag['value'] !== ''; + return !($tag['tag'] === '' && $tag['value'] === ''); }); } |