Fixes category label not correctly displayed (#6767)

This commit is contained in:
MatteoBiscosi 2022-07-08 11:07:33 +02:00
parent a4c00a9ac2
commit 8f26f7740b
8 changed files with 9 additions and 8 deletions

View file

@ -19,7 +19,7 @@ local query = string.lower(_GET["query"])
local categories = interface.getnDPICategories()
for cat, id in pairsByKeys(categories, asc_insensitive) do
cat = getCategoryLabel(cat)
cat = getCategoryLabel(cat, id)
if string.contains(string.lower(cat), query) then
results[#results + 1] = {name=cat, key=id}