small cleanup

This commit is contained in:
kremsy 2014-01-28 17:06:22 +01:00 committed by Steffen Schröder
parent 51581b70cc
commit 6b62932ead

View File

@ -543,9 +543,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
if ($shown) { if ($shown) {
$player = $this->maniaControl->playerManager->getPlayer($login); $player = $this->maniaControl->playerManager->getPlayer($login);
if ($player != null) { if ($player != null) {
if ($shown) { $this->showMapList($player);
$this->showMapList($player);
}
} else { } else {
unset($this->mapListShown[$login]); unset($this->mapListShown[$login]);
} }