fix awful.util.table.join if first arg is null (#1052)

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
uzsolt 2012-11-11 15:01:02 +01:00 committed by Uli Schlachter
parent 8e35e1a6a9
commit 6a6e49accd
1 changed files with 1 additions and 1 deletions

View File

@ -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