Merge pull request #8693 from annando/notice

Fix notice because of missing array item
This commit is contained in:
Hypolite Petovan 2020-05-27 00:29:30 -04:00 committed by GitHub
commit 133de9b524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]);