From 9aecfb51a95ada75694b292ca6a6360f0c6e9f41 Mon Sep 17 00:00:00 2001 From: tedbro Date: Wed, 6 Nov 2013 07:24:02 -0800 Subject: [PATCH] Fixed the change gender for tfs 1 --- myaccount.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/myaccount.php b/myaccount.php index a513f0a..7c87a8f 100644 --- a/myaccount.php +++ b/myaccount.php @@ -47,7 +47,10 @@ if (!empty($_POST['change_gender'])) { $char_id = (int)user_character_id($char_name); $account_id = user_character_account_id($char_name); - $chr_data = user_character_data($char_id, 'online'); + if ($config['TFSVersion'] == 'TFS_10') { + $chr_data = user_is_online_10($user_id); + } else $chr_data = user_character_data($char_id, 'online'); + if ($chr_data['online'] != 1) { // Verify that we are not messing around with data if ($account_id != $user_data['id']) die("wtf? Something went wrong, try relogging.");