Merge branch 'bugfix/buchholz-wrong' into develop

This commit is contained in:
Jeroen De Meerleer 2019-09-27 17:04:05 +02:00
commit 8b3258988d
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
* CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters
* BUGFIX: `Player:GetId` returns elo instead of id
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had onplayed rounds
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had unplayed rounds
## v1.1.2 (Release: 21-jun-2019)
* ENHANCEMENT: Added update section to dist/readme.md

View File

@ -742,10 +742,7 @@ class Tournament
$intpairings = array_slice($intpairings, $cutlowest);
$intpairings = array_slice($intpairings, 0 - $cuthighest);
foreach ($intpairings as $intkey => $intpairing) {
$tiebreak += $intpairing;
}
return $tiebreak;
return array_sum($intpairings);
}