Merge pull request #7600 from annando/fix-fatal
Fix fatal error for empty parameter for "System::removedBaseUrl"
This commit is contained in:
commit
878d8a506d
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);
|
||||
|
||||
if (!empty($profiledata["photo"])) {
|
||||
$profiledata["photo"] = System::removedBaseUrl($profiledata["photo"]);
|
||||
}
|
||||
|
||||
return $profiledata;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue