fix awful.util.table.join if first arg is null (#1052)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8e35e1a6a9
commit
6a6e49accd
|
@ -336,7 +336,7 @@ end
|
||||||
-- @return A new table containing all keys from the arguments.
|
-- @return A new table containing all keys from the arguments.
|
||||||
function util.table.join(...)
|
function util.table.join(...)
|
||||||
local ret = {}
|
local ret = {}
|
||||||
for i, t in ipairs({...}) do
|
for i, t in pairs({...}) do
|
||||||
if t then
|
if t then
|
||||||
for k, v in pairs(t) do
|
for k, v in pairs(t) do
|
||||||
if type(k) == "number" then
|
if type(k) == "number" then
|
||||||
|
|
Loading…
Reference in New Issue