From 779ddba26aa58f0d4d2c5efed61cef92baa5f66e Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 8 Jul 2017 16:29:49 -0700 Subject: [PATCH] fix slideshow --- app/Http/Controllers/SlideshowController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SlideshowController.php b/app/Http/Controllers/SlideshowController.php index e288613..c9c8eec 100644 --- a/app/Http/Controllers/SlideshowController.php +++ b/app/Http/Controllers/SlideshowController.php @@ -18,7 +18,7 @@ class SlideshowController extends Controller foreach(json_decode($tweet->photo) as $photo) { $photos[] = [ 'img' => $photo, - 'description' => $tweet->team->name . ' Team: ' . $tweet->text + 'description' => ($tweet->team ? $tweet->team->name . ' Team: ' : '') . $tweet->text ]; } }