Missing global

This commit is contained in:
Richard Underwood 2017-01-04 11:57:50 +00:00
parent f2377913f0
commit e9b6a49e5a

View file

@ -20,7 +20,7 @@ function init_db() {
} }
function open_db() { function open_db() {
global $authdb, $db; global $authdb, $db, $db_version;
if (!isset($db)) { if (!isset($db)) {
$db = new SQLite3($authdb, SQLITE3_OPEN_READWRITE); $db = new SQLite3($authdb, SQLITE3_OPEN_READWRITE);