mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
Fix issue #8
This commit is contained in:
parent
5582670fc0
commit
1e3461314b
@ -127,19 +127,22 @@ function support_list() {
|
|||||||
$TFS = Config('TFSVersion');
|
$TFS = Config('TFSVersion');
|
||||||
if ($TFS == 'TFS_10') $staffs = mysql_select_multi("SELECT `id`, `group_id`, `name`, `account_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` ASC;");
|
if ($TFS == 'TFS_10') $staffs = mysql_select_multi("SELECT `id`, `group_id`, `name`, `account_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` ASC;");
|
||||||
else $staffs = mysql_select_multi("SELECT `group_id`, `name`, `online`, `account_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` ASC;");
|
else $staffs = mysql_select_multi("SELECT `group_id`, `name`, `online`, `account_id` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` ASC;");
|
||||||
for ($i = 0; $i < count($staffs); $i++) {
|
|
||||||
// $staffs[$i]['']
|
if ($staffs !== false) {
|
||||||
if ($TFS == 'TFS_02' || $TFS == 'TFS_10') {
|
for ($i = 0; $i < count($staffs); $i++) {
|
||||||
$account = mysql_select_single("SELECT `type` FROM `accounts` WHERE `id` ='". $staffs[$i]['account_id'] ."';");
|
// $staffs[$i]['']
|
||||||
$staffs[$i]['group_id'] = $account['type'];
|
if ($TFS == 'TFS_02' || $TFS == 'TFS_10') {
|
||||||
if ($TFS == 'TFS_10') {
|
$account = mysql_select_single("SELECT `type` FROM `accounts` WHERE `id` ='". $staffs[$i]['account_id'] ."';");
|
||||||
// Fix online status on TFS 1.0
|
$staffs[$i]['group_id'] = $account['type'];
|
||||||
if (user_is_online_10($staffs[$i]['id'])) $staffs[$i]['online'] = 1;
|
if ($TFS == 'TFS_10') {
|
||||||
else $staffs[$i]['online'] = 0;
|
// Fix online status on TFS 1.0
|
||||||
unset($staffs[$i]['id']);
|
if (user_is_online_10($staffs[$i]['id'])) $staffs[$i]['online'] = 1;
|
||||||
|
else $staffs[$i]['online'] = 0;
|
||||||
|
unset($staffs[$i]['id']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
unset($staffs[$i]['account_id']);
|
||||||
}
|
}
|
||||||
unset($staffs[$i]['account_id']);
|
|
||||||
}
|
}
|
||||||
return $staffs;
|
return $staffs;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user