Changeset

4886:26d8e4665ce9

util.dataforms: Fix validation of booleans.
author Kim Alvefur <zash@zash.se>
date Thu, 17 May 2012 21:18:35 +0200
parents 4885:8df3e709f8b7
children 4887:4dd61fe04db4
files util/dataforms.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/dataforms.lua	Thu May 17 21:04:31 2012 +0200
+++ b/util/dataforms.lua	Thu May 17 21:18:35 2012 +0200
@@ -214,7 +214,7 @@
 		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