applications/luci-statistics: cope with uci list values, thanks Bluse for reporting...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 6 Sep 2012 20:15:05 +0000 (20:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 6 Sep 2012 20:15:05 +0000 (20:15 +0000)
applications/luci-statistics/root/usr/bin/stat-genconfig

index 01a974e..171c1ae 100755 (executable)
@@ -208,6 +208,13 @@ function _expand( s, n, nopad )
                end
 
                return str
                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
 
        end
 end