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:
Znote 2019-09-22 23:44:26 +02:00
parent 7f1a4af7d2
commit 8a8baba9fc

View File

@ -94,8 +94,10 @@ if (!empty($_POST['selected_character'])) {
// Check if player and account matches // Check if player and account matches
if ($session_user_id != $accountId || $session_user_id != $order['account_id']) { if ($session_user_id != $accountId || $session_user_id != $order['account_id']) {
if (empty($errors)) {
$errors[] = 'Failed to sync your account. :|'; $errors[] = 'Failed to sync your account. :|';
} }
}
$newname = validate_name($newname); $newname = validate_name($newname);
if ($newname === false) { if ($newname === false) {