Fix warning: Undefined array key "public"
This commit is contained in:
parent
6af025246e
commit
a7e576fda0
|
@ -39,12 +39,13 @@ class Relationship extends BaseFactory
|
||||||
{
|
{
|
||||||
$cdata = Contact::getPublicAndUserContactID($contactId, $uid);
|
$cdata = Contact::getPublicAndUserContactID($contactId, $uid);
|
||||||
if (!empty($cdata)) {
|
if (!empty($cdata)) {
|
||||||
$cid = $cdata['user'];
|
$cid = $cdata['user'];
|
||||||
|
$pcid = $cdata['public'];
|
||||||
} else {
|
} 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));
|
Contact\User::isBlocked($cid, $uid), Contact\User::isIgnored($cid, $uid));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user