diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-25 23:46:58 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-25 23:46:58 +0000 |
commit | 02a0d81ee235f6a99b8de27763f3e742f67c3e2b (patch) | |
tree | 8234daf4c7ddc3ce96dee39de3c96fdc61bc3907 /util/serialization.lua | |
parent | 000870c95ac64d44f148b753daa53bc339aa14bf (diff) | |
parent | 2e3f2e68d7669723ad68d149b2c943ad925cadf8 (diff) | |
download | prosody-02a0d81ee235f6a99b8de27763f3e742f67c3e2b.tar.gz prosody-02a0d81ee235f6a99b8de27763f3e742f67c3e2b.zip |
Merge with 0.6
Diffstat (limited to 'util/serialization.lua')
-rw-r--r-- | util/serialization.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/serialization.lua b/util/serialization.lua index 07a099c9..7071d3f7 100644 --- a/util/serialization.lua +++ b/util/serialization.lua @@ -35,7 +35,7 @@ local function _simplesave(o, ind, t, func) elseif type(o) == "string" then func(t, (("%q"):format(o):gsub("\\\n", "\\n"))); elseif type(o) == "table" then - if next(o) then + if next(o) ~= nil then func(t, "{\n"); for k,v in pairs(o) do func(t, indent(ind)); |