Fix fallback on unknown contact
This commit is contained in:
@@ -164,7 +164,7 @@ function display_fetchauthor($a, $item)
|
||||
$profiledata["about"] = "";
|
||||
}
|
||||
|
||||
$profiledata = array_merge($profiledata, Contact::getByURLForUser($profiledata["url"], local_user()));
|
||||
$profiledata = Contact::getByURLForUser($profiledata["url"], local_user()) ?: $profiledata;
|
||||
|
||||
if (!empty($profiledata["photo"])) {
|
||||
$profiledata["photo"] = DI::baseUrl()->remove($profiledata["photo"]);
|
||||
|
||||
Reference in New Issue
Block a user