Fix fatal error for empty parameter for "System::removedBaseUrl"
This commit is contained in:
parent
1b4125c194
commit
d7a8417941
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user