Method getPhoto of Photo model should return false on error
Instead of red circle image, which breaks proxy module
This commit is contained in:
committed by
Hypolite Petovan
parent
4e38bc8a0d
commit
bbbc15a5eb
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user