fix on image
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user