Fixes #5507 -- Fix type coercion on on-demand search.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-06-15 16:08:10 -05:00
parent 5bc5736a3e
commit d97c907ee6
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ final class ListAction
$trackList = $trackList->filter(
function ($row) use ($searchFields, $searchPhrase) {
foreach ($searchFields as $searchField) {
if (false !== stripos($row[$searchField], $searchPhrase)) {
if (false !== stripos($row[$searchField] ?? '', $searchPhrase)) {
return true;
}
}