summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/database.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/data/database.lua')
-rw-r--r--plugins/data/database.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/data/database.lua b/plugins/data/database.lua
index 82a389c3237..c07d5165591 100644
--- a/plugins/data/database.lua
+++ b/plugins/data/database.lua
@@ -16,7 +16,7 @@ do
db = sql.open(dbpath .. "/history.db")
if not db then
emu.print_error("Unable to create history.db\n")
- return nil
+ return false
end
check_db("opening database")
end
@@ -38,4 +38,4 @@ end
local dbtable = { prepare = function(...) return db:prepare(...) end,
exec = function(...) return db:exec(...) end, ROW = sql.ROW, check = check_db }
-return db and dbtable or nil
+return db and dbtable or false