merge Maniacontrol official repository changes

This commit is contained in:
Beu
2025-01-23 19:33:22 +01:00
parent a6875cabc8
commit e6444a5a47
6 changed files with 17 additions and 7 deletions

View File

@ -44,6 +44,9 @@ class Database implements TimerListener {
// Enable mysqli Reconnect
ini_set('mysqli.reconnect', 'on');
// Change error report mechanism -> used to set compatibility to php < 8.1
mysqli_report(MYSQLI_REPORT_OFF);
// Open database connection
$this->loadConfig();
$this->mysqli = @new \mysqli($this->config->host, $this->config->user, $this->config->pass, null, $this->config->port);