mirror of
https://github.com/friendica/friendica
synced 2025-05-01 10:24:24 +02:00
Method getPhoto of Photo model should return false on error
Instead of red circle image, which breaks proxy module
This commit is contained in:
parent
4e38bc8a0d
commit
bbbc15a5eb
2 changed files with 4 additions and 3 deletions
|
@ -138,9 +138,7 @@ class Photo extends BaseObject
|
|||
$params = ["order" => ["scale" => true]];
|
||||
|
||||
$photo = self::selectFirst([], $conditions, $params);
|
||||
if ($photo === false) {
|
||||
return self::createPhotoForSystemResource("images/nosign.jpg");
|
||||
}
|
||||
|
||||
return $photo;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue