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