]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Allow to override boolean false
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Nov 2018 14:21:04 +0000 (14:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Nov 2018 14:21:04 +0000 (14:21 +0000)
lualib/lua_util.lua

index 8611946a15f31bbc697e7a2b744eed22a38c1b01..0d56e689d4d63b2dedd352ad3008da91dbd5ecce 100644 (file)
@@ -535,7 +535,7 @@ local function override_defaults(def, override)
   end
 
   for k,v in pairs(def) do
-    if not res[k] then
+    if type(res[k]) == 'nil' then
       res[k] = v
     end
   end