From 04101f59f5cd8c08d86bbf2e5d7563f3c1a43887 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 26 Dec 2018 15:45:36 +0000 Subject: [PATCH] [Minor] Avoid type mismatch --- lualib/rspamadm/confighelp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5