mirror of
https://github.com/friendica/friendica
synced 2025-05-03 13:44:10 +02:00
Avoid fatal error when AP contact has no photo
This commit is contained in:
parent
9491c63934
commit
76a420fbe9
2 changed files with 18 additions and 6 deletions
|
@ -413,7 +413,11 @@ class Photo extends BaseObject
|
|||
$photo_failure = false;
|
||||
|
||||
$filename = basename($image_url);
|
||||
$img_str = Network::fetchUrl($image_url, true);
|
||||
if (!empty($image_url)) {
|
||||
$img_str = Network::fetchUrl($image_url, true);
|
||||
} else {
|
||||
$img_str = '';
|
||||
}
|
||||
|
||||
if ($quit_on_error && ($img_str == "")) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue