aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-13 17:00:27 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-13 17:00:27 +0100
commit70e77200f7789e9fb606c7e99e30a54aca70c5c5 (patch)
tree65bc2e4d57655c0f62aec527649de4e5f46296d4 /util/dataforms.lua
parent125dc63f565a46aedcb1750c45dcc97c71c2c72b (diff)
parent9bd85eabf029220d25431ab17bc86bf308b51b8d (diff)
downloadprosody-70e77200f7789e9fb606c7e99e30a54aca70c5c5.tar.gz
prosody-70e77200f7789e9fb606c7e99e30a54aca70c5c5.zip
Merge 0.10->trunk
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index b2988ae7..9f2693b1 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -7,7 +7,7 @@
--
local setmetatable = setmetatable;
-local pairs, ipairs = pairs, ipairs;
+local ipairs = ipairs;
local tostring, type, next = tostring, type, next;
local t_concat = table.concat;
local st = require "util.stanza";
@@ -32,7 +32,7 @@ function form_t.form(layout, data, formtype)
if layout.instructions then
form:tag("instructions"):text(layout.instructions):up();
end
- for n, field in ipairs(layout) do
+ for _, field in ipairs(layout) do
local field_type = field.type or "text-single";
-- Add field tag
form:tag("field", { type = field_type, var = field.name, label = field.label });