diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 14:21:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-16 14:21:04 +0000 |
commit | 2d027e3d15a65d4815571c45b04a7e42c99df0d9 (patch) | |
tree | 6e550adfb17e92790f8a5bc00faa235e720b7df1 | |
parent | 86bf20929247329a022faa7b0384c20fac0a5079 (diff) | |
download | rspamd-2d027e3d15a65d4815571c45b04a7e42c99df0d9.tar.gz rspamd-2d027e3d15a65d4815571c45b04a7e42c99df0d9.zip |
[Minor] Allow to override boolean false
-rw-r--r-- | lualib/lua_util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index 8611946a1..0d56e689d 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -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 |