mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
change default database encryption key of null to empty string, to prevent exception.
This commit is contained in:
@@ -82,7 +82,8 @@ class CustomDatabaseWrapper {
|
|||||||
private $maxRetries;
|
private $maxRetries;
|
||||||
private $retryDelay;
|
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->sqlite = new SQLite3($filename, $flags, $encryptionKey);
|
||||||
$this->maxRetries = $maxRetries;
|
$this->maxRetries = $maxRetries;
|
||||||
$this->retryDelay = $retryDelay;
|
$this->retryDelay = $retryDelay;
|
||||||
|
|||||||
Reference in New Issue
Block a user