From 767dc4376ca1af37e95edc4f1a44ae71ba68f8e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 25 Oct 2014 22:02:36 +0200 Subject: [PATCH] fixed minor issue added via recent change --- plugins/MCTeam/WidgetPlugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/MCTeam/WidgetPlugin.php b/plugins/MCTeam/WidgetPlugin.php index 8589e945..c9a01ce6 100644 --- a/plugins/MCTeam/WidgetPlugin.php +++ b/plugins/MCTeam/WidgetPlugin.php @@ -457,13 +457,13 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { if ($queuedMap) { $requester = $queuedMap[0]; $map = $queuedMap[1]; - $name = Formatter::stripDirtyCodes($map->name); - $author = $map->author; + $name = $map->name; + $author = $map->authorLogin; } else { try { $map = $this->maniaControl->getClient()->getNextMapInfo(); - $name = $map->name; - $author = $map->authorLogin; + $name = Formatter::stripDirtyCodes($map->name); + $author = $map->author; } catch (FaultException $exception) { // TODO: replace by more specific exception as soon as it's available (No next map currently defined.) }