https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b4125c
)
Fix fatal error for empty parameter for "System::removedBaseUrl"
author
Michael
<heluecht@pirati.ca>
Wed, 4 Sep 2019 21:11:58 +0000
(21:11 +0000)
committer
Michael
<heluecht@pirati.ca>
Wed, 4 Sep 2019 21:11:58 +0000
(21:11 +0000)
mod/display.php
patch
|
blob
|
history
diff --git
a/mod/display.php
b/mod/display.php
index
54d4792
..
ee1fd91
100644
(file)
--- 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;
}