From: Michael Date: Wed, 4 Sep 2019 21:11:58 +0000 (+0000) Subject: Fix fatal error for empty parameter for "System::removedBaseUrl" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7a84179412bfaa3bded3ce6743861995e5eda94;p=friendica.git Fix fatal error for empty parameter for "System::removedBaseUrl" --- 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; }