From e8d5515169054ee0b41d929b17cd02b87daae73d Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 27 Sep 2019 17:29:51 +0200 Subject: [PATCH 1/2] Return 0 if mutual result cannot be used --- src/Tournament.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tournament.php b/src/Tournament.php index c0a4670..d47793d 100644 --- a/src/Tournament.php +++ b/src/Tournament.php @@ -621,7 +621,7 @@ class Tournament } } if ($totalmatches != count($interestingplayers)) { - $points = null; + $points = 0; } return $points; } From b27a4c5769e168dc5bb38f33243c3b1c5cf4af56 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 27 Sep 2019 17:31:39 +0200 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb86647..2ab729c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,9 @@ * NEW FEATURE: `Tournament::getArbiters` for multiple arbiters in 1 tournament * 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 unplayed rounds +* BUGFIX: `Player:getId` returns elo instead of id +* 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) * ENHANCEMENT: Added update section to dist/readme.md