From bc375f7fe744b27baad1053cd8e1c791de1ff9b9 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Fri, 20 Oct 2017 14:23:35 -0700 Subject: [PATCH] fix context.addFilter --- src/base/context.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/context.lua b/src/base/context.lua index 4c8e5fb5..0e1c662e 100644 --- a/src/base/context.lua +++ b/src/base/context.lua @@ -99,10 +99,10 @@ function context.addFilter(ctx, key, value) if type(value) == "table" then for i = 1, #value do - value[i] = value[i]:lower() + value[i] = tostring(value[i]):lower() end - elseif value then - value = value:lower() + elseif value ~= nil then + value = tostring(value):lower() end ctx.terms[key:lower()] = value end