Merge branch 'develop'

This commit is contained in:
Jeroen De Meerleer 2023-01-09 10:48:43 +01:00
commit 9aca75d298
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ class Player
if ($key < $round || $round == -1) {
if ($pairing->Result == Result::WON_BYE) {
$points += (isset($custompoints[ 'bye' ])) ? $custompoints[ 'bye' ] : 1;
} else if ($pairing->Result == Result::ABSENT !== false) {
} else if ($pairing->Result == Result::ABSENT) {
$points += (isset($custompoints[ 'absent' ])) ? $custompoints[ 'absent' ] : 0;
} elseif (array_search($pairing->Result, Constants::WON) !== false) {
$points += (isset($custompoints[ 'win' ])) ? $custompoints[ 'win' ] : 1;

View File

@ -517,7 +517,7 @@ class Swar5 implements ReaderInterface
$player->Performance = $this->readData('Int', $swshandle); // To Calculate by libpairtwo
$player->Absent = $this->readData('Int', $swshandle);
$player->AbsentRounds = $this->readData('Int', $swshandle);
if(version_compare($this->Release, '5.53', '>=')) $player->Paid = $this->readData('Int', $swshandle);
if(version_compare($this->Release, '5.53', "<=")) $player->Paid = $this->readData('Int', $swshandle);
$player->ExtraPoints = $this->readData('Int', $swshandle);
$player->SpecialPoints = $this->readData('Int', $swshandle);
$player->AllocatedRounds = $this->readData('Int', $swshandle);