From d7a84179412bfaa3bded3ce6743861995e5eda94 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 4 Sep 2019 21:11:58 +0000 Subject: [PATCH] Fix fatal error for empty parameter for "System::removedBaseUrl" --- mod/display.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }