fix on image

This commit is contained in:
Ludovic CANDELLIER
2022-01-25 23:27:55 +01:00
parent fb047aa036
commit 45c7385046

View File

@@ -14,7 +14,7 @@ class Offers
public static function getThumbSrc(Offer $offer) public static function getThumbSrc(Offer $offer)
{ {
return Articles::getThumbSrc($offer->article->image); return $offer->article ? Articles::getThumbSrc($offer->article->image) : false;
} }
public static function getLast() public static function getLast()