kopia lustrzana https://github.com/friendica/friendica
Merge pull request #14304 from annando/fatal
Fix fatal error for unknown contact idspull/14286/head
commit
e3c782010f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue