From: Vsevolod Stakhov Date: Sat, 3 Mar 2018 13:35:59 +0000 (+0000) Subject: [Minor] Fix type check X-Git-Tag: 1.7.0~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22f1d4a067ccfbcdc6bcc83e6a6692da5e774c4e;p=thirdparty%2Frspamd.git [Minor] Fix type check --- diff --git a/lualib/rspamadm/getopt.lua b/lualib/rspamadm/getopt.lua index c36774092c..20715c3874 100644 --- a/lualib/rspamadm/getopt.lua +++ b/lualib/rspamadm/getopt.lua @@ -1,6 +1,6 @@ local function insert_option(tab, name, value) if tab[name] then - if type(tab[name] == 'table') then + if type(tab[name]) == 'table' then table.insert(tab[name], value) else local old_val = tab[name]