From 8318169c3965e541bdf342c215490014bc382ecc Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 28 Jun 2023 15:15:14 +0200 Subject: [PATCH] Fix twig exception thrown when player does not exist --- system/pages/account/change_comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/account/change_comment.php b/system/pages/account/change_comment.php index 903ca49d..21221426 100644 --- a/system/pages/account/change_comment.php +++ b/system/pages/account/change_comment.php @@ -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 ));