diff --git a/application/core/Chat.php b/application/core/Chat.php index 0d71b3e6..4674da1d 100644 --- a/application/core/Chat.php +++ b/application/core/Chat.php @@ -79,7 +79,7 @@ class Chat { $this->maniaControl->client->chatSendServerMessage($chatMessage); } else { $chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>'; - if ($login instanceof Player) { + if (is_object($login) && property_exists($login, 'login')) { $login = $login->login; } try{