mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
Fix warning: Undefined array key "public"
This commit is contained in:
parent
6af025246e
commit
a7e576fda0
1 changed files with 4 additions and 3 deletions
|
@ -40,11 +40,12 @@ class Relationship extends BaseFactory
|
|||
$cdata = Contact::getPublicAndUserContactID($contactId, $uid);
|
||||
if (!empty($cdata)) {
|
||||
$cid = $cdata['user'];
|
||||
$pcid = $cdata['public'];
|
||||
} else {
|
||||
$cid = $contactId;
|
||||
$pcid = $cid = $contactId;
|
||||
}
|
||||
|
||||
return new RelationshipEntity($cdata['public'], Contact::getById($cid),
|
||||
return new RelationshipEntity($pcid, Contact::getById($cid),
|
||||
Contact\User::isBlocked($cid, $uid), Contact\User::isIgnored($cid, $uid));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue