Merge pull request #7600 from annando/fix-fatal

Fix fatal error for empty parameter for "System::removedBaseUrl"
This commit is contained in:
Hypolite Petovan 2019-09-04 18:33:57 -04:00 committed by GitHub
commit 878d8a506d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,9 @@ function display_fetchauthor($a, $item)
$profiledata = Contact::getDetailsByURL($profiledata["url"], local_user(), $profiledata);
if (!empty($profiledata["photo"])) {
$profiledata["photo"] = System::removedBaseUrl($profiledata["photo"]);
}
return $profiledata;
}