From 92447edf0cc5960119f149820ddc170dd91ff13b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 May 2012 21:18:35 +0200 Subject: util.dataforms: Fix validation of booleans. --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3