mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +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
|
@ -39,12 +39,13 @@ class Relationship extends BaseFactory
|
|||
{
|
||||
$cdata = Contact::getPublicAndUserContactID($contactId, $uid);
|
||||
if (!empty($cdata)) {
|
||||
$cid = $cdata['user'];
|
||||
$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