From 149d1538921754a89549847e9b20288104ab3492 Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Tue, 29 Aug 2023 09:17:18 +0200 Subject: [PATCH] Tags: Don't put NULL into trim() --- components/com_tags/src/Controller/TagsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/com_tags/src/Controller/TagsController.php b/components/com_tags/src/Controller/TagsController.php index 02b22c411a34a..f58920c8ef16b 100644 --- a/components/com_tags/src/Controller/TagsController.php +++ b/components/com_tags/src/Controller/TagsController.php @@ -35,8 +35,8 @@ public function searchAjax() // Receive request data $filters = [ - 'like' => trim($this->input->get('like', null, 'string')), - 'title' => trim($this->input->get('title', null, 'string')), + 'like' => trim($this->input->get('like', '', 'string')), + 'title' => trim($this->input->get('title', '', 'string')), 'flanguage' => $this->input->get('flanguage', null, 'word'), 'published' => $this->input->get('published', 1, 'int'), 'parent_id' => $this->input->get('parent_id', 0, 'int'),