suppress warning
This commit is contained in:
parent
1a8c6ad036
commit
81ae9c2e2a
@ -219,7 +219,7 @@ class Database implements TimerListener {
|
|||||||
* Check whether the Database Connection is still open
|
* Check whether the Database Connection is still open
|
||||||
*/
|
*/
|
||||||
public function checkConnection() {
|
public function checkConnection() {
|
||||||
if (!$this->getMysqli() || !$this->getMysqli()->ping()) {
|
if (!$this->getMysqli() || !@$this->getMysqli()->ping()) {
|
||||||
$this->maniaControl->quit('The MySQL Server has gone away!', true);
|
$this->maniaControl->quit('The MySQL Server has gone away!', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user