From 4b9ea37217cb293d1f0de7390851ee8ef7e1e63f Mon Sep 17 00:00:00 2001 From: Beu Date: Wed, 1 Nov 2023 11:17:40 +0100 Subject: [PATCH] convert value from database to int --- core/Players/PlayerManager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/Players/PlayerManager.php b/core/Players/PlayerManager.php index d175d525..8f05c5e1 100644 --- a/core/Players/PlayerManager.php +++ b/core/Players/PlayerManager.php @@ -600,12 +600,12 @@ class PlayerManager implements CallbackListener, TimerListener, CommunicationLis } $player = new Player($this->maniaControl, false); - $player->index = $row->index; + $player->index = intval($row->index); $player->login = $row->login; $player->rawNickname = $row->nickname; $player->nickname = Formatter::stripDirtyCodes($player->rawNickname); $player->path = $row->path; - $player->authLevel = $row->authLevel; + $player->authLevel = intval($row->authLevel); return $player; } @@ -715,12 +715,12 @@ class PlayerManager implements CallbackListener, TimerListener, CommunicationLis } $player = new Player($this->maniaControl, false); - $player->index = $playerIndex; + $player->index = intval($playerIndex); $player->login = $row->login; $player->rawNickname = $row->nickname; $player->nickname = Formatter::stripDirtyCodes($player->rawNickname); $player->path = $row->path; - $player->authLevel = $row->authLevel; + $player->authLevel = intval($row->authLevel); return $player; }