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 | 9917c35bb6283da5ccb2b42cbc3f500af5884573 (patch) | |
tree | 92181f1e5121abb6b646e156f1ffcdc1b319303b /util/dataforms.lua | |
parent | 0913989a69ec274a2325c00fbae966973260e89f (diff) | |
download | prosody-9917c35bb6283da5ccb2b42cbc3f500af5884573.tar.gz prosody-9917c35bb6283da5ccb2b42cbc3f500af5884573.zip |
util.dataforms: Ensure fields have names when collecting data (fixes traceback, thanks Martin)
Diffstat (limited to 'util/dataforms.lua')
-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 |