]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Avoid type mismatch
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 26 Dec 2018 15:45:36 +0000 (15:45 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 26 Dec 2018 15:45:36 +0000 (15:45 +0000)
lualib/rspamadm/confighelp.lua

index 6f84ae53f87ba92fa21a7f10bb2dfdd5882ebf18..1eecb9238c3389505e66b26b40a05404c32f722f 100644 (file)
@@ -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