summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/usr/bin
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-09-06 20:15:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-09-06 20:15:05 +0000
commit0a96f6de35b0a1c8fd75b62499d311c6f268b2bc (patch)
tree259f89a1551231f3c73a07d4ad4dd9742735e807 /applications/luci-statistics/root/usr/bin
parentc66a688f8be825684f93945a72c772b5e8b979b0 (diff)
applications/luci-statistics: cope with uci list values, thanks Bluse for reporting this
Diffstat (limited to 'applications/luci-statistics/root/usr/bin')
-rwxr-xr-xapplications/luci-statistics/root/usr/bin/stat-genconfig7
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 01a974e2ad..171c1ae733 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