fixed minor issue added via recent change
This commit is contained in:
		| @@ -457,13 +457,13 @@ class WidgetPlugin implements CallbackListener, TimerListener, Plugin { | |||||||
| 		if ($queuedMap) { | 		if ($queuedMap) { | ||||||
| 			$requester = $queuedMap[0]; | 			$requester = $queuedMap[0]; | ||||||
| 			$map       = $queuedMap[1]; | 			$map       = $queuedMap[1]; | ||||||
| 			$name      = Formatter::stripDirtyCodes($map->name); | 			$name      = $map->name; | ||||||
| 			$author    = $map->author; | 			$author    = $map->authorLogin; | ||||||
| 		} else { | 		} else { | ||||||
| 			try { | 			try { | ||||||
| 				$map    = $this->maniaControl->getClient()->getNextMapInfo(); | 				$map    = $this->maniaControl->getClient()->getNextMapInfo(); | ||||||
| 				$name   = $map->name; | 				$name   = Formatter::stripDirtyCodes($map->name); | ||||||
| 				$author = $map->authorLogin; | 				$author = $map->author; | ||||||
| 			} catch (FaultException $exception) { | 			} catch (FaultException $exception) { | ||||||
| 				// TODO: replace by more specific exception as soon as it's available (No next map currently defined.) | 				// TODO: replace by more specific exception as soon as it's available (No next map currently defined.) | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user