projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ef3a1
)
* luci/libs: util: little bugfix in serialize_data()
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 28 Aug 2008 16:44:10 +0000
(16:44 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 28 Aug 2008 16:44:10 +0000
(16:44 +0000)
libs/core/luasrc/util.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/util.lua
b/libs/core/luasrc/util.lua
index bf463ae7055f0c52ccfae83a6161ba8fa0d2889a..39784f5923fa0ec0d83df23a95ac13c772963867 100644
(file)
--- a/
libs/core/luasrc/util.lua
+++ b/
libs/core/luasrc/util.lua
@@
-456,7
+456,7
@@
function _serialize_table(t, seen)
idata = idata .. ( #idata > 0 and ", " or "" ) .. v
end
- return idata .. ( #data > 0 and ", " or "" ) .. data
+ return idata .. ( #data > 0 and
#idata > 0 and
", " or "" ) .. data
end
--- Recursively serialize given data to lua code, suitable for restoring