removing DB opens/closes

This commit is contained in:
Jokob-sk
2023-01-01 12:49:11 +11:00
parent ec32fca3f9
commit b86cbb3a39
11 changed files with 114 additions and 187 deletions

View File

@@ -20,11 +20,7 @@ $confPath = "../config/pialert.conf";
checkPermissions([$dbPath, $confPath]);
// Open DB
OpenDB($dbPath);
global $db;
global $pia_lang;
$result = $db->query("SELECT * FROM Settings");
@@ -43,7 +39,7 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
);
}
$db->close();
CommitDB();
?>
<!-- Page ------------------------------------------------------------------ -->