Skip to content

Commit d02dae4

Browse files
committed
added more concrete ternary operator check
1 parent 207b3b0 commit d02dae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Query/Common/QueryConverter/NativeQueryConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function convert(Query $query, array $languageSettings = [])
6868
{
6969
$params = [
7070
'q' => '{!lucene}' . $this->criterionVisitor->visit($query->query),
71-
'fq' => '{!lucene}' . ($query->filter ? $this->criterionVisitor->visit($query->filter) : ''),
71+
'fq' => '{!lucene}' . ($query->filter !== null ? $this->criterionVisitor->visit($query->filter) : ''),
7272
'sort' => $this->getSortClauses($query->sortClauses),
7373
'start' => $query->offset,
7474
'rows' => $query->limit,

0 commit comments

Comments
 (0)