Changeset

7816:2624f4ee34a2

mod_register: Fix syntax errors
author Kim Alvefur <zash@zash.se>
date Fri, 06 Jan 2017 13:14:17 +0100
parents 7815:f8d25a2e80ea
children 7818:54669df178c2
files plugins/mod_register.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_register.lua	Fri Jan 06 13:09:09 2017 +0100
+++ b/plugins/mod_register.lua	Fri Jan 06 13:14:17 2017 +0100
@@ -62,8 +62,7 @@
 for _, field in ipairs(additional_fields) do
 	if type(field) == "table" then
 		registration_form[#registration_form + 1] = field;
-	else
-	elseif field_map[field] or field_map[field:sub(1, -2) then
+	elseif field_map[field] or field_map[field:sub(1, -2)] then
 		if field:match("%+$") then
 			field = field:sub(1, -2);
 			field_map[field].required = true;