From: Michael Date: Wed, 27 May 2020 03:19:17 +0000 (+0000) Subject: Fix notice because of missing array item X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=465e1890b50da1d34b4dd597af6a01f786601ae9;p=friendica.git Fix notice because of missing array item --- 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]);