|
@ -18,7 +18,7 @@ class SlideshowController extends Controller |
|
|
foreach(json_decode($tweet->photo) as $photo) { |
|
|
foreach(json_decode($tweet->photo) as $photo) { |
|
|
$photos[] = [ |
|
|
$photos[] = [ |
|
|
'img' => $photo, |
|
|
'img' => $photo, |
|
|
'description' => $tweet->team->name . ' Team: ' . $tweet->text |
|
|
|
|
|
|
|
|
'description' => ($tweet->team ? $tweet->team->name . ' Team: ' : '') . $tweet->text |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|