]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error for empty parameter for "System::removedBaseUrl"
authorMichael <heluecht@pirati.ca>
Wed, 4 Sep 2019 21:11:58 +0000 (21:11 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 4 Sep 2019 21:11:58 +0000 (21:11 +0000)
mod/display.php

index 54d479259482556d01b81afb9c34a665cf97717a..ee1fd91d7d12b521ae13e554b6ecc1ad0b2b956d 100644 (file)
@@ -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;
 }