]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GServer.php
Fix notice because of missing array item
[friendica.git] / 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]);