diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index e9d36873..b92138ee 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -268,7 +268,9 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { // Display Maps $array = array($id => $x + 5, $mxId => $x + 10, Formatter::stripDirtyCodes($map->name) => $x + 20, $map->authorNick => $x + 68); $labels = $this->maniaControl->manialinkManager->labelLine($mapFrame, $array); - $script->addTooltip($labels[3], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$<' . $map->name . '$> made by $<' . $map->authorLogin . '$>')); + if ($labels[3]) { + $script->addTooltip($labels[3], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$<' . $map->name . '$> made by $<' . $map->authorLogin . '$>')); + } // TODO action detailed map info including mx info