summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua
index 3f65a80fb..2686445de 100644
--- a/libs/core/luasrc/util.lua
+++ b/libs/core/luasrc/util.lua
@@ -417,6 +417,8 @@ function serialize_data(val)
:gsub("\n", "\\n")
:gsub('"','\\"')
return '"' .. val .. '"'
+ elseif type(val) == "boolean" then
+ return val and "true" or "false"
elseif type(val) == "table" then
return "{ " .. _serialize_table(val) .. " }"
else