1
1
Fork 0

Fix notice because of missing array item

This commit is contained in:
Michael 2020-05-27 03:19:17 +00:00
parent 5c3607f69f
commit 465e1890b5

View file

@ -469,7 +469,7 @@ class GServer
}
}
if (!empty($id) && ($serverdata['network'] != Protocol::PHANTOM)) {
if (!empty($serverdata['network']) && !empty($id) && ($serverdata['network'] != Protocol::PHANTOM)) {
$gcontacts = DBA::count('gcontact', ['gsid' => $id]);
$apcontacts = DBA::count('apcontact', ['gsid' => $id]);
$contacts = DBA::count('contact', ['uid' => 0, 'gsid' => $id]);