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

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;
}