mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-23 19:42:58 +03:00
Fixed issues as db can't be closed now.
This commit is contained in:
parent
e9b6a49e5a
commit
f978e784d5
3 changed files with 1 additions and 9 deletions
|
@ -51,8 +51,7 @@ function get_db() {
|
|||
global $authdb, $db;
|
||||
|
||||
if (!isset($db)) {
|
||||
$db = new SQLite3($authdb, SQLITE3_OPEN_READWRITE);
|
||||
$db->exec('PRAGMA foreign_keys = 1');
|
||||
open_db();
|
||||
}
|
||||
|
||||
return $db;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue