Skip to content

Commit

Permalink
🔧 Patch for Local Storage Cache Check Issue
Browse files Browse the repository at this point in the history
Merge pull request #73 from RChutchev/main
  • Loading branch information
Axton authored May 1, 2023
2 parents d2ea7c7 + fe5223b commit 0628b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Quickblaze Files
.vscode/
.stashed/
.gitattributes
.dccache
Expand All @@ -14,4 +15,4 @@ composer.lock

# Docker (Unreleased)
Dockerfile
.dockerignore
.dockerignore
2 changes: 1 addition & 1 deletion Modules/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function setupStorageMethod()
die();
} else {
$cache = json_decode(file_get_contents("./local-storage/.cache"), true);
if ($cache["DO-NOT-TOUCH:database_installation_status"] == "false") {
if ($cache["DO-NOT-TOUCH:database_installation_status"] == "false" || !isset($cache["DO-NOT-TOUCH:database_installation_status"])) {
$tableCreateSQL = "CREATE TABLE IF NOT EXISTS `quickblaze_records` (`record_id` int(11) NOT NULL, `encrypted_contents` longtext NOT NULL, `encryption_token` varchar(128) NOT NULL, `source_ip` varchar(100) NOT NULL, `record_date` timestamp(5) NOT NULL DEFAULT current_timestamp(5)) ENGINE=InnoDB DEFAULT CHARSET=utf8;";
$addPrimaryKeySQL = "ALTER TABLE `quickblaze_records` ADD PRIMARY KEY (`record_id`);";
if ($conn->query($tableCreateSQL)) {
Expand Down

0 comments on commit 0628b76

Please sign in to comment.