[whoison] Handle empty deserialized data
This commit is contained in:
parent
33c7bad24e
commit
3189da0e3e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user