From d3770373d4e3d427f2393d14f3ae4fb805a74f6a Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sat, 20 Sep 2025 13:56:50 +0000 Subject: [PATCH] change default database encryption key of `null` to empty string, to prevent exception. --- front/php/server/db.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/php/server/db.php b/front/php/server/db.php index f0ee9f1a..9a16c9ca 100755 --- a/front/php/server/db.php +++ b/front/php/server/db.php @@ -82,7 +82,8 @@ class CustomDatabaseWrapper { private $maxRetries; private $retryDelay; - public function __construct($filename, $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $maxRetries = 3, $retryDelay = 1000, $encryptionKey = null) { + public function __construct($filename, $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, + $maxRetries = 3, $retryDelay = 1000, $encryptionKey = "") { $this->sqlite = new SQLite3($filename, $flags, $encryptionKey); $this->maxRetries = $maxRetries; $this->retryDelay = $retryDelay;