mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge pull request #14304 from annando/fatal
Fix fatal error for unknown contact ids
This commit is contained in:
commit
e3c782010f
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue