mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Suppressed uneccesary error in change character name. myaccount.php
When you dont have ticket to do change your name, a sync error appeared, even though its not a sync error.
This commit is contained in:
parent
7f1a4af7d2
commit
8a8baba9fc
@ -94,7 +94,9 @@ if (!empty($_POST['selected_character'])) {
|
||||
|
||||
// Check if player and account matches
|
||||
if ($session_user_id != $accountId || $session_user_id != $order['account_id']) {
|
||||
$errors[] = 'Failed to sync your account. :|';
|
||||
if (empty($errors)) {
|
||||
$errors[] = 'Failed to sync your account. :|';
|
||||
}
|
||||
}
|
||||
|
||||
$newname = validate_name($newname);
|
||||
@ -241,7 +243,7 @@ if ($render_page) {
|
||||
<h1>My account</h1>
|
||||
<p>Welcome to your account page, <?php if ($config['ServerEngine'] !== 'OTHIRE') echo $user_data['name']; else echo $user_data['id']; ?><br>
|
||||
<?php if ($config['ServerEngine'] !== 'OTHIRE') {
|
||||
echo 'You have ' .$user_data['premdays']. 'days remaining premium account.';
|
||||
echo 'You have ' .$user_data['premdays']. ' days remaining premium account.';
|
||||
} else {
|
||||
if ($user_data['premend'] != 0) {
|
||||
echo 'Your premium account will last till ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user