mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
Fix fatal error for unknown contact ids
This commit is contained in:
parent
fca67b3fcb
commit
bce4539ff3
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]);
|
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'alias', 'uid'], ['id' => $cid]);
|
||||||
|
if (empty($contact)) {
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
return self::magicLinkByContact($contact, $url);
|
return self::magicLinkByContact($contact, $url);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue