* luci/libs: util: little bugfix in serialize_data()
This commit is contained in:
parent
33ef3a1da2
commit
af2cce3839
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ function _serialize_table(t, seen)
|
||||||
idata = idata .. ( #idata > 0 and ", " or "" ) .. v
|
idata = idata .. ( #idata > 0 and ", " or "" ) .. v
|
||||||
end
|
end
|
||||||
|
|
||||||
return idata .. ( #data > 0 and ", " or "" ) .. data
|
return idata .. ( #data > 0 and #idata > 0 and ", " or "" ) .. data
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Recursively serialize given data to lua code, suitable for restoring
|
--- Recursively serialize given data to lua code, suitable for restoring
|
||||||
|
|
Loading…
Reference in a new issue