aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-15 22:50:05 +0200
committerKim Alvefur <zash@zash.se>2018-07-15 22:50:05 +0200
commit747b34d54a381fdeb2219156e856ebe8cfc84434 (patch)
tree92181f1e5121abb6b646e156f1ffcdc1b319303b
parent531971e0b5610f20fb1e5a631c999000d15f1b3c (diff)
downloadprosody-747b34d54a381fdeb2219156e856ebe8cfc84434.tar.gz
prosody-747b34d54a381fdeb2219156e856ebe8cfc84434.zip
util.dataforms: Ensure fields have names when collecting data (fixes traceback, thanks Martin)
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 64f73c11..6152c9f3 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -155,7 +155,7 @@ function form_t.data(layout, stanza)
if field.required then
errors[field.name] = "Required value missing";
end
- else
+ elseif field.name then
present[field.name] = true;
local reader = field_readers[field.type];
if reader then