This commit is contained in:
2018-06-06 21:35:21 +02:00
parent 4b18d4aca0
commit 24e2a4407a

View File

@@ -66,7 +66,7 @@ class PagesController extends Controller
foreach ($tipps as $tipp) { foreach ($tipps as $tipp) {
$score = 0; $score = 0;
$match = $matches->find($tipp->matchid)->get(); $match = $matches->find($tipp->matchid)->get();
$diffmatch = abs($match->resualta - $match->resultb); $diffmatch = abs($match->resulta - $match->resultb);
$difftipp = abs($tipp->resulta - $tipp->resultb); $difftipp = abs($tipp->resulta - $tipp->resultb);
if (winTeam($tipp->resulta, $tipp->resultb) == winTeam($match->resulta, $match->resultb)) { if (winTeam($tipp->resulta, $tipp->resultb) == winTeam($match->resulta, $match->resultb)) {