X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact%2FRelation.php;h=5616148fa0183e2d774d3c70f585c80218faced9;hb=1d00947bcde4b75cec21c9bf813ef8f109bafc1b;hp=bae59f48c57e727df52fbc7ac53548264be3c44e;hpb=f905220923c63ddf3cca28d0d88736533da1db74;p=friendica.git diff --git a/src/Model/Contact/Relation.php b/src/Model/Contact/Relation.php index bae59f48c5..5616148fa0 100644 --- a/src/Model/Contact/Relation.php +++ b/src/Model/Contact/Relation.php @@ -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 = [];