Changeset

459:3117d7e207c5

mod_component_guard: added default empty table entries for config options (is it even valid for true sets?)
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 23 Oct 2011 23:30:36 +0000
parents 458:4149fcacbbf1
children 460:9bb9343f3c7a
files mod_component_guard/mod_component_guard.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_component_guard/mod_component_guard.lua	Sat Oct 22 22:11:53 2011 +0000
+++ b/mod_component_guard/mod_component_guard.lua	Sun Oct 23 23:30:36 2011 +0000
@@ -1,8 +1,8 @@
 -- Block or restrict by blacklist remote access to local components.
 
-local guard_blockall = module:get_option_set("component_guard_blockall")
-local guard_protect = module:get_option_set("component_guard_components")
-local guard_block_bl = module:get_option_set("component_guard_blacklist")
+local guard_blockall = module:get_option_set("component_guard_blockall", {})
+local guard_protect = module:get_option_set("component_guard_components", {})
+local guard_block_bl = module:get_option_set("component_guard_blacklist", {})
 
 local s2smanager = require "core.s2smanager";
 local config = require "core.configmanager";