From 1beb6ca74d98a99851f17b3ebeba2beb2658a14b Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 25 Jan 2014 19:00:36 +0100 Subject: [PATCH] change error on adding map --- application/core/Maps/MapManager.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index a7a27b8f..50ce6997 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -548,16 +548,10 @@ class MapManager implements CallbackListener { $mapFileName = $downloadDirectory . '/' . $fileName; try { - $response = $this->maniaControl->client->checkMapForCurrentServerParams($mapFileName); + $this->maniaControl->client->checkMapForCurrentServerParams($mapFileName); } catch(Exception $e) { trigger_error("Couldn't check if map is valid ('{$mapFileName}'). " . $e->getMessage()); - $this->maniaControl->chat->sendError('Error checking map!', $login); - return; - } - - if(!$response) { - // Invalid map type - $this->maniaControl->chat->sendError("Invalid map type.", $login); + $this->maniaControl->chat->sendError('Wrong MapType or not validated!', $login); return; }