Fixed undefined variable errors

This commit is contained in:
Alexander Nell 2020-04-21 17:52:15 +02:00
parent ffd46c3cdd
commit 567c6a0aa2
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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)) {