From cb095b15c6f300a4e4b0502832219ff542bca1ad Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 24 May 2017 10:25:42 +0200 Subject: [PATCH] Dedimania small maintance --- ManiaControl.php | 1 - plugins/MCTeam/Dedimania/DedimaniaWebHandler.php | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ManiaControl.php b/ManiaControl.php index e25ffb07..a9f02325 100644 --- a/ManiaControl.php +++ b/ManiaControl.php @@ -42,7 +42,6 @@ if($devMode === "true"){ define('DEV_MODE', false); // Development mode to not send error reports etc. } - if(DEV_MODE){ \ManiaControl\Logger::log('Starting ManiaControl with activated Development Mode...'); }else{ diff --git a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php index c049d425..6a8e7434 100644 --- a/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php +++ b/plugins/MCTeam/Dedimania/DedimaniaWebHandler.php @@ -110,7 +110,9 @@ class DedimaniaWebHandler implements TimerListener { if (!$serverInfo || !$playerInfo || !$mapInfo || !$gameMode) { $data = array($this->dedimaniaData->sessionId, $mapInfo, $gameMode, $serverInfo, $playerInfo); - Logger::logError("Dedimania Records could not be fetched, debuginfo:" . json_encode($data)); + if(!$serverInfo){ // No Players + Logger::logError("Dedimania Records could not be fetched, debuginfo:" . json_encode($data)); + } return false; }