fix many PHP 8.4 compatibility issues
This commit is contained in:
1 parent
03a991cd50
commit
7a8d9f2b0b
59 files changed
+137
-98
No files matched your search
@@ -223,7 +223,7 @@ class Database implements TimerListener {
|
||||
* Check whether the Database Connection is still open
|
||||
*/
|
||||
public function checkConnection() {
|
||||
if (!$this->getMysqli() || !@$this->getMysqli()->ping()) {
|
||||
if (!$this->getMysqli() || !$this->getMysqli()->query('DO 1')) {
|
||||
$this->maniaControl->quit('The MySQL Server has gone away!', true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user