Ensured that query clients are hidden on admin list
This commit is contained in:
parent
1e53d62081
commit
e03d475227
|
@ -29,7 +29,7 @@ function getAdminList() {
|
||||||
$localIcons = array(100, 200, 300, 400, 500, 600);
|
$localIcons = array(100, 200, 300, 400, 500, 600);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$tsAdmin = TeamSpeak3::factory(getTeamspeakURI() . "#no_query_clients");
|
$tsAdmin = TeamSpeak3::factory(getTeamspeakURI());
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
|
|
||||||
|
@ -69,6 +69,8 @@ function getAdminList() {
|
||||||
foreach ($clients as $userInfo) {
|
foreach ($clients as $userInfo) {
|
||||||
$user = getClientByDbid($tsAdmin, $userInfo['cldbid']);
|
$user = getClientByDbid($tsAdmin, $userInfo['cldbid']);
|
||||||
|
|
||||||
|
if($user["client_type"]) continue;
|
||||||
|
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
$offlineClients[] = '<p><span class="label label-primary iconspacer">' . $userInfo['client_nickname'] . '</span><span class="label label-danger pull-right">' . translate($lang["adminlist"]["status"]["offline"]) . '</span></p>';
|
$offlineClients[] = '<p><span class="label label-primary iconspacer">' . $userInfo['client_nickname'] . '</span><span class="label label-danger pull-right">' . translate($lang["adminlist"]["status"]["offline"]) . '</span></p>';
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue