diff --git a/src/Player.php b/src/Player.php index dd896c7..36efc25 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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; diff --git a/src/Readers/Swar5.php b/src/Readers/Swar5.php index 8828305..3ceec5f 100644 --- a/src/Readers/Swar5.php +++ b/src/Readers/Swar5.php @@ -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);