diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-21 12:39:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-21 12:39:30 +0000 |
commit | f75769f242817029e5d8bfa3d617d02aece1729a (patch) | |
tree | 69439a3a50adfe84c64b994fea3eb21ed561e04c /lualib/lua_stat.lua | |
parent | 464e03890c20488ec6bff075ddf28772cd15f422 (diff) | |
download | rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.tar.gz rspamd-f75769f242817029e5d8bfa3d617d02aece1729a.zip |
[Minor] Fix tests
Diffstat (limited to 'lualib/lua_stat.lua')
-rw-r--r-- | lualib/lua_stat.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_stat.lua b/lualib/lua_stat.lua index 21870b27d..2606a8d22 100644 --- a/lualib/lua_stat.lua +++ b/lualib/lua_stat.lua @@ -519,7 +519,7 @@ exports.redis_classifier_from_sqlite = redis_classifier_from_sqlite -- Reads statistics config and return preprocessed table local function process_stat_config(cfg) - local opts_section = cfg:get_all_opt('options') + local opts_section = cfg:get_all_opt('options') or {} -- Check if we have a dedicated section for statistics if opts_section.statistics then |