applications/luci-statistics: add missing return in _expand()
This commit is contained in:
parent
0a96f6de35
commit
1aa81b4ae0
1 changed files with 4 additions and 7 deletions
|
@ -200,22 +200,19 @@ function _list_expand( c, l, nopad )
|
|||
end
|
||||
|
||||
function _expand( s, n, nopad )
|
||||
if type(s) == "string" then
|
||||
local str = ""
|
||||
local str = ""
|
||||
|
||||
if type(s) == "string" then
|
||||
for i, v in ipairs( luci.util.split( s, "%s+", nil, true ) ) do
|
||||
str = str .. _string( v, 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
|
||||
|
||||
return str
|
||||
end
|
||||
|
||||
function _bool( s, n, nopad )
|
||||
|
|
Loading…
Reference in a new issue