diff options
author | Steven Barth <steven@midlink.org> | 2008-08-28 18:57:34 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-28 18:57:34 +0000 |
commit | 8f03192ce4b39906db82658b0543e237e2a757d2 (patch) | |
tree | 9033fcf22501b394a1ff37f0368620710ec1ab56 /libs | |
parent | 8b28f46eeab80c7a5ec6f454780a338302eaa0da (diff) |
Fixed luci.util.dumptable again
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core/luasrc/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 233bfcc33..260fc16a0 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -191,7 +191,7 @@ function dumptable(t, maxdepth, i, seen) for k,v in pairs(t) do perror(string.rep("\t", i) .. tostring(k) .. "\t" .. tostring(v)) - if type(v) == "table" and i < maxdepth then + if type(v) == "table" and (not maxdepth or i < maxdepth) then if not seen[v] then seen[v] = true dumptable(v, maxdepth, i+1, seen) |