From 567c6a0aa222a8c90391053c9f6e1bd8ba0b2152 Mon Sep 17 00:00:00 2001 From: Alexander Nell Date: Tue, 21 Apr 2020 17:52:15 +0200 Subject: [PATCH] Fixed undefined variable errors --- core/Admin/ColorManager.php | 2 +- core/Update/ChangeLog.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Admin/ColorManager.php b/core/Admin/ColorManager.php index e6f7da07..b8ade092 100644 --- a/core/Admin/ColorManager.php +++ b/core/Admin/ColorManager.php @@ -72,7 +72,7 @@ class ColorManager implements UsageInformationAble { * @return string */ public function getColorByName($authName) { - switch ($authLevel) { + switch ($authName) { case AuthenticationManager::AUTH_NAME_PLAYER: return $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_COLOR_PLAYER); case AuthenticationManager::AUTH_NAME_MODERATOR: diff --git a/core/Update/ChangeLog.php b/core/Update/ChangeLog.php index eea13b15..aad6611e 100644 --- a/core/Update/ChangeLog.php +++ b/core/Update/ChangeLog.php @@ -84,6 +84,7 @@ class ChangeLog implements CommandListener { $posX = -0.45*$width; $initialPosY = 0.4*$height - 5; + $posY = $initialPosY; $changelog = $this->getChangeLogArray(); if (empty($changelog)) {