From 4f1235bfe90fe531e68356a6fde250275435f228 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 55519ced..f5b8f733 100644 --- a/system/pages/account/change_comment.php +++ b/system/pages/account/change_comment.php @@ -57,7 +57,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 ));