small fix

This commit is contained in:
kremsy 2014-02-26 20:59:32 +01:00 committed by Steffen Schröder
parent 0daf046247
commit c5676390ff

View File

@ -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