Force authLevel to be interpreted as integer

This commit is contained in:
Alexander Nell 2020-05-26 18:14:50 +02:00
parent cb84df401a
commit cfaa114daa

View File

@ -373,7 +373,7 @@ class Player implements Dumpable, UsageInformationAble {
* @return string
*/
public function getAuthLevelName(){
return AuthenticationManager::getAuthLevelName($this->authLevel);
return AuthenticationManager::getAuthLevelName(intval($this->authLevel));
}
/**
@ -383,7 +383,7 @@ class Player implements Dumpable, UsageInformationAble {
* @return string
*/
public function getAuthLevelAbbreviation(){
return AuthenticationManager::getAuthLevelAbbreviation($this->authLevel);
return AuthenticationManager::getAuthLevelAbbreviation(intval($this->authLevel));
}
/**