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 | 9cf153e1bc49c1b9544f1f4e72a75eae5c363123 (patch) | |
tree | 78db109cd4efaeb3cd339ddd810b82ef7089e9e0 /util | |
parent | b5ab3d394d800a9feada9cf0495c6195c27a9f9e (diff) | |
download | prosody-9cf153e1bc49c1b9544f1f4e72a75eae5c363123.tar.gz prosody-9cf153e1bc49c1b9544f1f4e72a75eae5c363123.zip |
util.dataforms: Fix validation of booleans.
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 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 |