mirror of
https://github.com/friendica/friendica
synced 2024-11-18 04:23:41 +00:00
Fix fatal error for empty parameter for "System::removedBaseUrl"
This commit is contained in:
parent
1b4125c194
commit
d7a8417941
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue