aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-25 23:46:58 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-25 23:46:58 +0000
commit02a0d81ee235f6a99b8de27763f3e742f67c3e2b (patch)
tree8234daf4c7ddc3ce96dee39de3c96fdc61bc3907 /util
parent000870c95ac64d44f148b753daa53bc339aa14bf (diff)
parent2e3f2e68d7669723ad68d149b2c943ad925cadf8 (diff)
downloadprosody-02a0d81ee235f6a99b8de27763f3e742f67c3e2b.tar.gz
prosody-02a0d81ee235f6a99b8de27763f3e742f67c3e2b.zip
Merge with 0.6
Diffstat (limited to 'util')
-rw-r--r--util/serialization.lua2
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));