Skip to content

Commit a497567

Browse files
authored
Merge pull request #2700 from sebdesign/9.0
Return empty string for null request keyword
2 parents 1575e08 + f3c9e49 commit a497567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utilities/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function isColumnSearchable($i, $column_search = true)
170170
*/
171171
public function columnKeyword($index)
172172
{
173-
$keyword = $this->request->input("columns.$index.search.value");
173+
$keyword = $this->request->input("columns.$index.search.value") ?? '';
174174

175175
return $this->prepareKeyword($keyword);
176176
}
@@ -197,7 +197,7 @@ protected function prepareKeyword($keyword)
197197
*/
198198
public function keyword()
199199
{
200-
$keyword = $this->request->input('search.value');
200+
$keyword = $this->request->input('search.value') ?? '';
201201

202202
return $this->prepareKeyword($keyword);
203203
}

0 commit comments

Comments
 (0)