* fixed forum add/edit board

This commit is contained in:
slawkens
2017-10-11 16:59:31 +02:00
parent 27fb0ffb06
commit a1950cf27e
3 changed files with 5 additions and 4 deletions

View File

@@ -537,7 +537,7 @@ if($action == "changeemail") {
if($player_name != null) {
if (check_name($player_name)) {
$player = $ots->createObject('Player');
$player = new OTS_Player();
$player->find($player_name);
if ($player->isLoaded()) {
$player_account = $player->getAccount();
@@ -573,8 +573,7 @@ if($action == "changeemail") {
if(isset($player)) {
echo $twig->render('account.change_comment.html.twig', array(
'player' => $player,
'player_name' => $player_name
'player' => $player
));
}
}

View File

@@ -30,7 +30,7 @@ If you do not want to specify a certain field, just leave it blank.<br/><br/>
<table class="TableContent" width="100%">
<tr>
<td class="LabelV">Name:</td>
<td style="width:80%;" >{{ player_name }}</td>
<td style="width:80%;" >{{ player.getName() }}</td>
</tr>
<tr>
<td class="LabelV" >Hide Account:</td>