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

View File

@ -181,6 +181,12 @@ class MapManager implements CallbackListener {
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];
/** @var Map $map */
$mxId = $map->mx->id;