Fix various Notices

This commit is contained in:
Philipp 2021-09-13 20:22:55 +02:00
parent 9b19fb9b4d
commit 644f312896
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
7 changed files with 12 additions and 10 deletions

View file

@ -293,7 +293,7 @@ class Contact extends BaseModule
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id, 'uid' => [0, local_user()], 'deleted' => false]);
// Don't display contacts that are about to be deleted
if ($contact['network'] == Protocol::PHANTOM) {
if (DBA::isResult($contact) && !empty($contact['network']) && $contact['network'] == Protocol::PHANTOM) {
$contact = false;
}
}