diff --git a/mod/display.php b/mod/display.php index 54d4792594..ee1fd91d7d 100644 --- a/mod/display.php +++ b/mod/display.php @@ -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; }