From a9ee66a2d47bf5da63b8b9dc7ba7cfa33fee3774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 12 Feb 2021 16:17:43 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20Ne=20t=C3=A9l=C3=A9charge=20pas=20les?= =?UTF-8?q?=20images=20quand=20il=20n'y=20en=20a=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Home.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Home.php b/app/Home.php index ef2be01..c036b07 100644 --- a/app/Home.php +++ b/app/Home.php @@ -73,7 +73,9 @@ class Home extends Model implements Feedable { // Download images on creation static::created(static function ($home) { - Artisan::call('app:downloadimage ' . $home->id); + if (!empty($home->pictures)) { + Artisan::call('app:downloadimage ' . $home->id); + } }); }