From 81ae9c2e2aecdb7d5a9ce5b7cfb3c84e5fd9b4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 24 Oct 2014 20:08:58 +0200 Subject: [PATCH] suppress warning --- core/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Database/Database.php b/core/Database/Database.php index 80487ef0..ae053d31 100644 --- a/core/Database/Database.php +++ b/core/Database/Database.php @@ -219,7 +219,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()->ping()) { $this->maniaControl->quit('The MySQL Server has gone away!', true); } }