Merge pull request #14304 from annando/fatal

Fix fatal error for unknown contact ids
This commit is contained in:
Hypolite Petovan 2024-07-16 15:32:16 -04:00 committed by GitHub
commit e3c782010f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3568,6 +3568,9 @@ class Contact
}
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'alias', 'uid'], ['id' => $cid]);
if (empty($contact)) {
return $url;
}
return self::magicLinkByContact($contact, $url);
}