Fixed luci.util.dumptable

This commit is contained in:
Steven Barth 2008-08-28 16:16:51 +00:00
parent ba22660cb8
commit b3d63252e7

View file

@ -190,7 +190,7 @@ function dumptable(t, i, seen)
seen = seen or setmetatable({}, {__mode="k"})
for k,v in pairs(t) do
perror(string.rep("\t", i) .. tostring(k), tostring(v))
perror(string.rep("\t", i) .. tostring(k) .. "\t" .. tostring(v))
if type(v) == "table" then
if not seen[v] then
seen[v] = true