TeaSpeak servers dont return "virtualserver_nickname" - suppress warnings if its not there
This commit is contained in:
parent
e54fa125e2
commit
97e186e0f7
|
@ -29,7 +29,7 @@ if ($sinfo !== null) {
|
||||||
$returnJson["data"] = [
|
$returnJson["data"] = [
|
||||||
"uid" => (string) $sinfo["virtualserver_unique_identifier"],
|
"uid" => (string) $sinfo["virtualserver_unique_identifier"],
|
||||||
"name" => (string) $sinfo["virtualserver_name"],
|
"name" => (string) $sinfo["virtualserver_name"],
|
||||||
"nicknames" => (string) $sinfo["virtualserver_nickname"],
|
"nicknames" => (string) @$sinfo["virtualserver_nickname"],
|
||||||
"channelCount" => $sinfo["virtualserver_channelsonline"],
|
"channelCount" => $sinfo["virtualserver_channelsonline"],
|
||||||
"serverIconId" => $sinfo["virtualserver_icon_id"],
|
"serverIconId" => $sinfo["virtualserver_icon_id"],
|
||||||
"clientsOnline" => $onlineNow,
|
"clientsOnline" => $onlineNow,
|
||||||
|
|
Loading…
Reference in New Issue