mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +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));
|
$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(
|
$twig->display('account.change_comment.html.twig', array(
|
||||||
'player' => $player
|
'player' => $player
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user