[autocomplete] don't show tags with 0 uses, see #1012
This commit is contained in:
@@ -64,8 +64,10 @@ class AutoComplete extends Extension
|
||||
"
|
||||
SELECT tag, count
|
||||
FROM tags
|
||||
WHERE LOWER(tag) LIKE LOWER(:search)
|
||||
OR LOWER(tag) LIKE LOWER(:cat_search)
|
||||
WHERE (
|
||||
LOWER(tag) LIKE LOWER(:search)
|
||||
OR LOWER(tag) LIKE LOWER(:cat_search)
|
||||
)
|
||||
AND count > 0
|
||||
ORDER BY count DESC, tag ASC
|
||||
$limitSQL
|
||||
|
Reference in New Issue
Block a user