summaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm/confighelp.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-26 15:45:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-26 15:45:36 +0000
commit04101f59f5cd8c08d86bbf2e5d7563f3c1a43887 (patch)
tree64d27df0fc1fc8120d95fe77cb4810d19b631eef /lualib/rspamadm/confighelp.lua
parent624b528cb653d3048b797a8219d364140c45dffa (diff)
downloadrspamd-04101f59f5cd8c08d86bbf2e5d7563f3c1a43887.tar.gz
rspamd-04101f59f5cd8c08d86bbf2e5d7563f3c1a43887.zip
[Minor] Avoid type mismatch
Diffstat (limited to 'lualib/rspamadm/confighelp.lua')
-rw-r--r--lualib/rspamadm/confighelp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/rspamadm/confighelp.lua b/lualib/rspamadm/confighelp.lua
index 6f84ae53f..1eecb9238 100644
--- a/lualib/rspamadm/confighelp.lua
+++ b/lualib/rspamadm/confighelp.lua
@@ -78,7 +78,7 @@ local function print_help(key, value, tabs)
local nv = string.match(value['data'], '^#%s*(.*)%s*$') or value.data
print(string.format('%s\tDescription: %s', tabs, nv))
end
- if value['type'] then
+ if type(value['type']) == 'string' then
print(string.format('%s\tType: %s', tabs, value['type']))
end
if type(value['required']) == 'boolean' then