From 21e0678b0104cdf71085e39794fe4b6d1a7be7c6 Mon Sep 17 00:00:00 2001 From: structix Date: Sat, 2 Jun 2018 01:33:14 +0200 Subject: [PATCH] Fix --- tippspiel/resources/views/dashboard.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tippspiel/resources/views/dashboard.blade.php b/tippspiel/resources/views/dashboard.blade.php index ff1d6b4..12ef04a 100644 --- a/tippspiel/resources/views/dashboard.blade.php +++ b/tippspiel/resources/views/dashboard.blade.php @@ -39,7 +39,7 @@ {!! $teams->find($match->teama)->name !!} {!! $teams->find($match->teamb)->name !!} {!! $match->resulta . ':' . $match->resultb !!} - {!! $tipps->where('matchid', $match->id)->first()->resulta . ':' . $tipps->where('matchid', $match->id)->first()->resultb !!} + {!! $tipps->where('matchid', $match->id)->pluck('resulta')->first() . ':' . $tipps->where('matchid', $match->id)->pluck('resultb')->first() !!} @if($tipps->where('matchid', $match->id)->resulta != null)