fixed minor issue added via recent change

This commit is contained in:
Steffen Schröder 2014-10-25 22:02:36 +02:00
parent 2a6ef42017
commit 767dc4376c

View File

@ -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.)
}