Fix song history page null parameter error (#5500)
This commit is contained in:
parent
aa70489286
commit
0ccbc2b069
|
@ -115,7 +115,7 @@ final class HistoryController
|
|||
);
|
||||
}
|
||||
|
||||
$search_phrase = trim($request->getQueryParam('searchPhrase'));
|
||||
$search_phrase = trim($request->getQueryParam('searchPhrase') ?? '');
|
||||
if (!empty($search_phrase)) {
|
||||
$qb->andWhere('(sh.title LIKE :query OR sh.artist LIKE :query)')
|
||||
->setParameter('query', '%' . $search_phrase . '%');
|
||||
|
|
Loading…
Reference in New Issue