From: Andrew Lewis Date: Sat, 27 Jun 2015 15:03:18 +0000 (+0200) Subject: Fix settings X-Git-Tag: 0.9.9~34^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F309%2Fhead;p=rspamd.git Fix settings --- diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 1ea87e29e..643d2a378 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -29,6 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- https://rspamd.com/doc/configuration/settings.html local set_section = rspamd_config:get_all_opt("settings") +if not set_section then return end local settings = { [1] = {}, [2] = {},