Fix draw score
This commit is contained in:
1 parent
c48b010c09
commit
a1847701a8
1 file changed
+3
-2
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user