Fix fatal error
This commit is contained in:
parent
cf65725373
commit
d666501ee0
|
@ -67,6 +67,10 @@ class Account extends BaseFactory
|
||||||
$userContact = [];
|
$userContact = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($publicContact)) {
|
||||||
|
throw new HTTPException\NotFoundException('Contact ' . $contactId . ' not found');
|
||||||
|
}
|
||||||
|
|
||||||
$apcontact = APContact::getByURL($publicContact['url'], false);
|
$apcontact = APContact::getByURL($publicContact['url'], false);
|
||||||
|
|
||||||
$self_contact = Contact::selectFirst(['uid'], ['nurl' => $publicContact['nurl'], 'self' => true]);
|
$self_contact = Contact::selectFirst(['uid'], ['nurl' => $publicContact['nurl'], 'self' => true]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user