diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 560c0831d..133ad14b3 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -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]);