From 8a8baba9fc7aec23e96742c63ed99d75b54c2c1c Mon Sep 17 00:00:00 2001 From: Znote Date: Sun, 22 Sep 2019 23:44:26 +0200 Subject: [PATCH] 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. --- myaccount.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/myaccount.php b/myaccount.php index fa93f1b..c3f5a43 100644 --- a/myaccount.php +++ b/myaccount.php @@ -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) {

My account

Welcome to your account page,