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
1 changed files with 3 additions and 1 deletions

View File

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