From: Michael Date: Tue, 16 Jul 2024 18:15:30 +0000 (+0000) Subject: Fix fatal error for unknown contact ids X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bce4539ff3b15e0e3e8c908745473af72556f3b3;p=friendica.git Fix fatal error for unknown contact ids --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 43d60257b5..cecd505bde 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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); }