From: Jo-Philipp Wich Date: Thu, 6 Sep 2012 20:15:05 +0000 (+0000) Subject: applications/luci-statistics: cope with uci list values, thanks Bluse for reporting... X-Git-Tag: 0.11.0~129 X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=0a96f6de35b0a1c8fd75b62499d311c6f268b2bc applications/luci-statistics: cope with uci list values, thanks Bluse for reporting this --- 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