Merge branch 'bugfix/buchholz-noopponent' into develop

This commit is contained in:
Jeroen De Meerleer 2019-06-01 11:28:21 +02:00
commit 2e80157cbd
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -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) {
if(!is_null($intpairing->getOpponent())){
$tiebreak += $intpairing->getOpponent()->getPoints(); $tiebreak += $intpairing->getOpponent()->getPoints();
} }}
return $tiebreak; return $tiebreak;
} }