From 0587d811c9f633efa2a36a44439a4c3e122bc2f6 Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 23 Jan 2014 22:08:52 +0100 Subject: [PATCH] todo --- application/core/Maps/MapManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 9f5ff188..9b69fa6b 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -421,6 +421,9 @@ class MapManager implements CallbackListener { * @param array $callback */ public function handleBeginMap(array $callback) { + if(!isset($callback[1][0]["UId"])) { //TODO why this can happen? + return; + } if(array_key_exists($callback[1][0]["UId"], $this->maps)) { // Map already exists, only update index $this->currentMap = $this->maps[$callback[1][0]["UId"]];