* luci/libs/core: Oops... forgot the boolean datatype in serialize_data()

This commit is contained in:
Jo-Philipp Wich 2008-07-26 00:08:43 +00:00
parent 35360afb6f
commit d240fb4d8c

View file

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