From 0a96f6de35b0a1c8fd75b62499d311c6f268b2bc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 Sep 2012 20:15:05 +0000 Subject: [PATCH] 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(+) 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 -- 2.11.0