From c5676390ffc7ccac276067a8d704ee193a9ff728 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 26 Feb 2014 20:59:32 +0100 Subject: [PATCH] small fix --- application/core/Maps/MapList.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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