mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 07:47:42 +01:00
Fixed buchholz for bye or absent pairings
This commit is contained in:
parent
c82e380b73
commit
e28214b9a6
@ -215,8 +215,9 @@ abstract class Tiebreaks extends Tournament
|
|||||||
array_slice($intpairings, 0 - $cuthighest);
|
array_slice($intpairings, 0 - $cuthighest);
|
||||||
|
|
||||||
foreach ($intpairings as $intkey => $intpairing) {
|
foreach ($intpairings as $intkey => $intpairing) {
|
||||||
$tiebreak += $intpairing->getOpponent()->getPoints();
|
if(!is_null($intpairing->getOpponent())){
|
||||||
}
|
$tiebreak += $intpairing->getOpponent()->getPoints();
|
||||||
|
}}
|
||||||
return $tiebreak;
|
return $tiebreak;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user