]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact/Relation.php
Don't fetch sugestions for the system user / catch error on contact timeline
[friendica.git] / src / Model / Contact / Relation.php
index bae59f48c57e727df52fbc7ac53548264be3c44e..5616148fa0183e2d774d3c70f585c80218faced9 100644 (file)
@@ -323,6 +323,10 @@ class Relation
         */
        static public function getSuggestions(int $uid, int $start = 0, int $limit = 80): array
        {
+               if ($uid == 0) {
+                       return [];
+               }
+
                $cid = Contact::getPublicIdByUserId($uid);
                $totallimit = $start + $limit;
                $contacts = [];