From 465e1890b50da1d34b4dd597af6a01f786601ae9 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 27 May 2020 03:19:17 +0000 Subject: [PATCH] Fix notice because of missing array item --- src/Model/GServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 560c0831d7..133ad14b3a 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]); -- 2.39.5