Skip to content
Snippets Groups Projects
Commit 24a631ee authored by Nathanaëlle Courant's avatar Nathanaëlle Courant
Browse files
parent eec456be
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ local function read_file(filename)
local t = f:read("*all")
f:close()
if t=="" or t==nil then return {} end
return core.deserialize(t)
return core.deserialize(t) or {}
end
local function write_file(filename, table)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment