small fix

This commit is contained in:
kremsy 2014-01-25 22:29:25 +01:00 committed by Steffen Schröder
parent 1beb6ca74d
commit 616c72c9f9
2 changed files with 6 additions and 7 deletions

7
.gitignore vendored
View File

@ -1,7 +0,0 @@
/.idea/
/application/.idea/
/.settings/
/.buildpath
/.project
/updates/
/versions/

View File

@ -181,6 +181,12 @@ class MapManager implements CallbackListener {
return; return;
} }
if(!isset($uid)) {
trigger_error("Error while updating Map, unkown UID: " . $uid);
$this->maniaControl->chat->sendError("Error while updating Map.", $admin->login);
return;
}
$map = $this->maps[$uid]; $map = $this->maps[$uid];
/** @var Map $map */ /** @var Map $map */
$mxId = $map->mx->id; $mxId = $map->mx->id;