diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-28 16:44:10 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-28 16:44:10 +0000 |
commit | af2cce3839386dd545fb4d9d80809716972560b9 (patch) | |
tree | 4f6a9e58b1501159a0ff48a3b58a8b7389465897 /libs/core/luasrc | |
parent | 33ef3a1da2533be6a0ce1d425d80a7b911c406d9 (diff) |
* luci/libs: util: little bugfix in serialize_data()
Diffstat (limited to 'libs/core/luasrc')
-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 bf463ae705..39784f5923 100644 --- 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 |