mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix twig exception thrown when player does not exist
This commit is contained in:
parent
bf9d440a95
commit
4f1235bfe9
@ -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
|
||||
));
|
||||
|
Loading…
x
Reference in New Issue
Block a user