diff options
author | Kim Alvefur <zash@zash.se> | 2012-05-17 21:18:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-05-17 21:18:35 +0200 |
commit | 92447edf0cc5960119f149820ddc170dd91ff13b (patch) | |
tree | 78db109cd4efaeb3cd339ddd810b82ef7089e9e0 /util/dataforms.lua | |
parent | c332afde6eed518672dbdfaedb2b3e95a7d80f16 (diff) | |
download | prosody-92447edf0cc5960119f149820ddc170dd91ff13b.tar.gz prosody-92447edf0cc5960119f149820ddc170dd91ff13b.zip |
util.dataforms: Fix validation of booleans.
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 85bb39c1..1e01f6e8 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -214,7 +214,7 @@ field_readers["boolean"] = if value ~= nil then return value; elseif raw_value then - return "Invalid boolean representation"; + return nil, "Invalid boolean representation"; elseif required then return nil, "Required value missing"; end |