Fix fatal error for empty parameter for "System::removedBaseUrl"

This commit is contained in:
Michael 2019-09-04 21:11:58 +00:00
parent 1b4125c194
commit d7a8417941

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