summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-07-26 00:08:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-07-26 00:08:43 +0000
commitd240fb4d8c7d027c7a9d5b47662ea7ccc9394801 (patch)
tree12cbbdabc551da6eeb0870a0cef3c5446f69a5b4 /libs/core
parent35360afb6f4db43c3300b5a7420c79d4c1d03ba3 (diff)
* luci/libs/core: Oops... forgot the boolean datatype in serialize_data()
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