Fix twig exception thrown when player does not exist

This commit is contained in:
slawkens 2023-06-28 15:15:14 +02:00
parent ad00cf3fc3
commit 8318169c39

View File

@ -64,7 +64,7 @@ if($show_form) {
$twig->display('error_box.html.twig', array('errors' => $errors));
}
if(isset($player)) {
if(isset($player) && $player->isLoaded()) {
$twig->display('account.change_comment.html.twig', array(
'player' => $player
));