diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-15 22:50:05 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-15 22:50:05 +0200 |
commit | 747b34d54a381fdeb2219156e856ebe8cfc84434 (patch) | |
tree | 92181f1e5121abb6b646e156f1ffcdc1b319303b /util | |
parent | 531971e0b5610f20fb1e5a631c999000d15f1b3c (diff) | |
download | prosody-747b34d54a381fdeb2219156e856ebe8cfc84434.tar.gz prosody-747b34d54a381fdeb2219156e856ebe8cfc84434.zip |
util.dataforms: Ensure fields have names when collecting data (fixes traceback, thanks Martin)
Diffstat (limited to 'util')
-rw-r--r-- | util/dataforms.lua | 2 |
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 |