util.dataforms: Fix validation of booleans.

This commit is contained in:
Kim Alvefur 2012-05-17 21:18:35 +02:00
parent b5ab3d394d
commit 9cf153e1bc

View file

@ -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