Browse Source

[Minor] Avoid type mismatch

tags/1.9.0
Vsevolod Stakhov 5 years ago
parent
commit
04101f59f5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/rspamadm/confighelp.lua

+ 1
- 1
lualib/rspamadm/confighelp.lua View 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

Loading…
Cancel
Save