Module:Navbox: Difference between revisions
fix string building
m>Toohool (refactoring) |
m>Toohool (fix string building) |
||
Line 9: | Line 9: | ||
local ret = {} | local ret = {} | ||
function add(...) | function add(...) | ||
local args = {...} | |||
if | for i = 1, #args do | ||
table.insert(ret, | if args[i] then | ||
table.insert(ret, args[i]) | |||
end | end | ||
end | end |