Changeset

408:ee28af887507

mod_register_url: minor fix.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 30 Aug 2011 21:22:47 +0000
parents 407:41feaf7fd8ac
children 409:df57fa689415
files mod_register_url/mod_register_url.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_url/mod_register_url.lua	Tue Aug 30 13:34:39 2011 -0400
+++ b/mod_register_url/mod_register_url.lua	Tue Aug 30 21:22:47 2011 +0000
@@ -7,8 +7,7 @@
 function reg_redirect(event)
 	local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" };
 	local url = module:get_option("registration_url");
-	local no_wl = module:get_option("no_registration_whitelist") or false;
-	if type(no_wl) ~= boolean then no_wl = false end
+	local no_wl = module:get_option_boolean("no_registration_whitelist", false);
 	local test_ip = false;
 
 	if not no_wl then