From 0a96f6de35b0a1c8fd75b62499d311c6f268b2bc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 Sep 2012 20:15:05 +0000 Subject: applications/luci-statistics: cope with uci list values, thanks Bluse for reporting this --- applications/luci-statistics/root/usr/bin/stat-genconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'applications/luci-statistics/root/usr/bin') 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 -- cgit v1.2.3