fixed buchholzmed

This commit is contained in:
Jeroen De Meerleer 2019-06-01 14:49:33 +02:00
parent 7ff79c2224
commit eb46b7908c
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -212,9 +212,10 @@ abstract class Tiebreaks extends Tournament
}); });
$intpairings = array_slice($intpairings, $cutlowest); $intpairings = array_slice($intpairings, $cutlowest);
$intpairings = array_slice($intpairings, 0 - $cuthighest); $intpairings = array_slice($intpairings, 0, 0 - $cuthighest);
foreach ($intpairings as $intkey => $intpairing) { foreach ($intpairings as $intkey => $intpairing) {
echo $tiebreak . PHP_EOL;
if (!is_null($intpairing->getOpponent())) { if (!is_null($intpairing->getOpponent())) {
$tiebreak += $intpairing->getOpponent()->getPoints(); $tiebreak += $intpairing->getOpponent()->getPoints();
} }