mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-23 06:56:58 +01:00
BUGFIX: version compare did wrong
This commit is contained in:
parent
7a48b7777d
commit
94b18d3d9b
@ -235,7 +235,7 @@ class Player
|
|||||||
if ($key < $round || $round == -1) {
|
if ($key < $round || $round == -1) {
|
||||||
if ($pairing->Result == Result::WON_BYE) {
|
if ($pairing->Result == Result::WON_BYE) {
|
||||||
$points += (isset($custompoints[ 'bye' ])) ? $custompoints[ 'bye' ] : 1;
|
$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;
|
$points += (isset($custompoints[ 'absent' ])) ? $custompoints[ 'absent' ] : 0;
|
||||||
} elseif (array_search($pairing->Result, Constants::WON) !== false) {
|
} elseif (array_search($pairing->Result, Constants::WON) !== false) {
|
||||||
$points += (isset($custompoints[ 'win' ])) ? $custompoints[ 'win' ] : 1;
|
$points += (isset($custompoints[ 'win' ])) ? $custompoints[ 'win' ] : 1;
|
||||||
|
@ -517,7 +517,7 @@ class Swar5 implements ReaderInterface
|
|||||||
$player->Performance = $this->readData('Int', $swshandle); // To Calculate by libpairtwo
|
$player->Performance = $this->readData('Int', $swshandle); // To Calculate by libpairtwo
|
||||||
$player->Absent = $this->readData('Int', $swshandle);
|
$player->Absent = $this->readData('Int', $swshandle);
|
||||||
$player->AbsentRounds = $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->ExtraPoints = $this->readData('Int', $swshandle);
|
||||||
$player->SpecialPoints = $this->readData('Int', $swshandle);
|
$player->SpecialPoints = $this->readData('Int', $swshandle);
|
||||||
$player->AllocatedRounds = $this->readData('Int', $swshandle);
|
$player->AllocatedRounds = $this->readData('Int', $swshandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user