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