BUGFIX: `Tournament::calculateMutualResult` Returned NULL if result not

This commit is contained in:
Jeroen De Meerleer 2019-09-27 17:32:34 +02:00
parent 9ddff524d9
commit a0df232bf4
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,9 @@
* NEW FEATURE: `Tournament::getArbiters` for multiple arbiters in 1 tournament * NEW FEATURE: `Tournament::getArbiters` for multiple arbiters in 1 tournament
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent * ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
* CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters * CHANGE: `Tournament::getArbiter` accepts a `int` parameter representing the order of the arbiters
* BUGFIX: `Player:GetId` returns elo instead of id * BUGFIX: `Player:getId` returns elo instead of id
* BUGFIX: `Tournament::CalculateBuchholz` did not return the correct score when player had unplayed rounds * BUGFIX: `Tournament::calculateBuchholz` did not return the correct score when player had unplayed rounds
* BUGFIX: `Tournament::calculateMutualResult` Returned NULL if result was invalid
## v1.1.2 (Release: 21-jun-2019) ## v1.1.2 (Release: 21-jun-2019)
* ENHANCEMENT: Added update section to dist/readme.md * ENHANCEMENT: Added update section to dist/readme.md

View File

@ -621,7 +621,7 @@ class Tournament
} }
} }
if ($totalmatches != count($interestingplayers)) { if ($totalmatches != count($interestingplayers)) {
$points = null; $points = 0;
} }
return $points; return $points;
} }