Fix draw score

This commit is contained in:
2018-06-06 21:40:35 +02:00
parent c48b010c09
commit a1847701a8

View File

@@ -38,11 +38,12 @@ class Tipp extends Model
];
public static function winTeam($resulta, $resultb) {
if ($resulta == $resultb) {
return 'draw';
}
if ($resulta > $resultb) {
return 'a';
} else {
//if scores are even, b will be returned
//if match and tipp score is even, they'll both will be b
return 'b';
}
}