From eb46b7908c699aa505f0fed8bb1df68df9f2bf7b Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 1 Jun 2019 14:49:33 +0200 Subject: [PATCH] fixed buchholzmed --- src/Tiebreaks.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Tiebreaks.php b/src/Tiebreaks.php index cf76e78..f359eb2 100644 --- a/src/Tiebreaks.php +++ b/src/Tiebreaks.php @@ -212,9 +212,10 @@ abstract class Tiebreaks extends Tournament }); $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())) { $tiebreak += $intpairing->getOpponent()->getPoints(); }