diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-06 20:15:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-09-06 20:15:05 +0000 |
commit | 0a96f6de35b0a1c8fd75b62499d311c6f268b2bc (patch) | |
tree | 259f89a1551231f3c73a07d4ad4dd9742735e807 /applications | |
parent | c66a688f8be825684f93945a72c772b5e8b979b0 (diff) |
applications/luci-statistics: cope with uci list values, thanks Bluse for reporting this
Diffstat (limited to 'applications')
-rwxr-xr-x | applications/luci-statistics/root/usr/bin/stat-genconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig index 01a974e2a..171c1ae73 100755 --- a/applications/luci-statistics/root/usr/bin/stat-genconfig +++ b/applications/luci-statistics/root/usr/bin/stat-genconfig @@ -208,6 +208,13 @@ function _expand( s, n, nopad ) end return str + + elseif type(s) == "table" then + local str = "" + + for i, v in ipairs(s) do + str = str .. _string( v, n, nopad ) + end end end |