aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamapper.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/datamapper.lua')
-rw-r--r--util/datamapper.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/datamapper.lua b/util/datamapper.lua
index 7aa916bc..68c09434 100644
--- a/util/datamapper.lua
+++ b/util/datamapper.lua
@@ -13,6 +13,9 @@ local function toboolean(s)
end
local function totype(t, s)
+ if not s then
+ return nil
+ end
if t == "string" then
return s
elseif t == "boolean" then