Skip to content

Commit b0dd255

Browse files
authored
Merge pull request #533 from volandku/patch-1
Fix ignoring AND in case of index.php?option=com_search&view=search&s…
2 parents a214dee + ac80b22 commit b0dd255

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/search/k2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function onSearch($text, $phrase = '', $ordering = '', $areas = null)
149149
CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as catslug
150150
FROM #__k2_items AS i
151151
INNER JOIN #__k2_categories AS c ON c.id = i.catid
152-
WHERE {$where}
152+
WHERE ({$where})
153153
AND i.trash = 0
154154
AND i.published = 1
155155
AND i.access {$accessCheck}

0 commit comments

Comments
 (0)