From 10fe4c3e7e2971e83b10410f51eec918f9b4ad21 Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 27 Jan 2014 22:01:42 +0100 Subject: [PATCH] fixed a bug --- application/core/Maps/MapManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 321d17a6..05123da1 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -555,11 +555,13 @@ class MapManager implements CallbackListener { } // Add map to map list - if (!$this->maniaControl->client->insertMap($mapFileName)) { + try { + $this->maniaControl->client->insertMap($mapFileName); + } catch(\Exception $e) { $this->maniaControl->chat->sendError("Couldn't add map to match settings!", $login); return; } - + $this->updateFullMapList(); //Update Mx MapInfo