]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice because of missing array item
authorMichael <heluecht@pirati.ca>
Wed, 27 May 2020 03:19:17 +0000 (03:19 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 May 2020 03:19:17 +0000 (03:19 +0000)
src/Model/GServer.php

index 560c0831d7f09dfb329caa56148667a60c70e207..133ad14b3a861f76273bdf80c36be410e32ca3a7 100644 (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]);