[whoison] Prevent null lastseen table

master
LeMagnesium 2018-02-10 21:39:15 +01:00
parent a19acdf04e
commit adfb4752a3
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function whoison.loadLastSeen()
local ls = f:read("*all")
f:close()
if ( ls ~= nil and ls ~= "" ) then
whoison.lastseen = minetest.deserialize(ls)
whoison.lastseen = minetest.deserialize(ls) or {}
end
end
end