Fixed undefined variable errors
This commit is contained in:
		@@ -72,7 +72,7 @@ class ColorManager implements UsageInformationAble {
 | 
				
			|||||||
	 * @return string
 | 
						 * @return string
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	public function getColorByName($authName) {
 | 
						public function getColorByName($authName) {
 | 
				
			||||||
		switch ($authLevel) {
 | 
							switch ($authName) {
 | 
				
			||||||
			case AuthenticationManager::AUTH_NAME_PLAYER:
 | 
								case AuthenticationManager::AUTH_NAME_PLAYER:
 | 
				
			||||||
				return $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_COLOR_PLAYER);
 | 
									return $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_COLOR_PLAYER);
 | 
				
			||||||
			case AuthenticationManager::AUTH_NAME_MODERATOR:
 | 
								case AuthenticationManager::AUTH_NAME_MODERATOR:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -84,6 +84,7 @@ class ChangeLog implements CommandListener {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		$posX = -0.45*$width;
 | 
							$posX = -0.45*$width;
 | 
				
			||||||
		$initialPosY = 0.4*$height - 5;
 | 
							$initialPosY = 0.4*$height - 5;
 | 
				
			||||||
 | 
							$posY = $initialPosY;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$changelog = $this->getChangeLogArray();
 | 
							$changelog = $this->getChangeLogArray();
 | 
				
			||||||
		if (empty($changelog)) {
 | 
							if (empty($changelog)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user