From 5c990d5198c2a124bf9591b384356801603226ab Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 15 Aug 2016 01:40:47 +0200 Subject: [PATCH] filter fix --- tabs/search/filter.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tabs/search/filter.lua b/tabs/search/filter.lua index 3702b29..1adaad3 100644 --- a/tabs/search/filter.lua +++ b/tabs/search/filter.lua @@ -145,9 +145,10 @@ function private.get_filter_builder_query() add(strlower(getglobal('ITEM_QUALITY'..quality..'_DESC'))) end - add(aux.filter.query_string({blizzard={}, post=m.post_filter})) + local post_filter_string = aux.filter.query_string({blizzard={}, post=m.post_filter}) + add(post_filter_string ~= '' and post_filter_string) - return query_string + return query_string or '' end function private.set_form(components)