]> source.dussan.org Git - rspamd.git/commitdiff
Fix settings 310/head
authorAndrew Lewis <nerf@judo.za.org>
Sat, 27 Jun 2015 15:03:18 +0000 (17:03 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 27 Jun 2015 15:03:18 +0000 (17:03 +0200)
src/plugins/lua/settings.lua

index 7420d07164d2b1b0266b648b742f2986611d7798..bd2f2ce29a418547c5dab8f0cabe62c50792c900 100644 (file)
@@ -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] = {},