Skip to content

Commit f8891fd

Browse files
HackwarQuyTon
andauthored
Tags: Don't put NULL into trim() (#41509)
Co-authored-by: Quy <[email protected]>
1 parent d20c455 commit f8891fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/com_tags/src/Controller/TagsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function searchAjax()
3535

3636
// Receive request data
3737
$filters = [
38-
'like' => trim($this->input->get('like', null, 'string')),
39-
'title' => trim($this->input->get('title', null, 'string')),
38+
'like' => trim($this->input->get('like', '', 'string')),
39+
'title' => trim($this->input->get('title', '', 'string')),
4040
'flanguage' => $this->input->get('flanguage', null, 'word'),
4141
'published' => $this->input->get('published', 1, 'int'),
4242
'parent_id' => $this->input->get('parent_id', 0, 'int'),

0 commit comments

Comments
 (0)