mapqueue improvement

This commit is contained in:
kremsy
2014-08-13 21:33:26 +02:00
parent 73bdeca4d2
commit 9cc16a2fb5
2 changed files with 37 additions and 17 deletions

View File

@ -340,7 +340,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
// Checks if the Player who opened the Widget has queued the map
$queuer = $this->maniaControl->getMapManager()->getMapQueue()->getQueuer($map->uid);
if ($queuer->login == $player->login) {
if ($queuer && $queuer->login == $player->login) {
$description = 'Remove ' . $map->getEscapedName() . ' from the Map Queue';
$label->addTooltipLabelFeature($descriptionLabel, $description);
$label->setAction(self::ACTION_UNQUEUE_MAP . '.' . $map->uid);