mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Fixed reading tournamentyear
This commit is contained in:
parent
523cfe10ed
commit
512aebdc70
@ -460,7 +460,7 @@ class Sws extends SwsModel
|
|||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
|
||||||
// Organising club
|
// Organising club
|
||||||
$length = 12;
|
$length = 8;
|
||||||
$sws->getTournament()->setOrganiserClub(self::ReadData('String', substr($swscontents, $offset, $length)));
|
$sws->getTournament()->setOrganiserClub(self::ReadData('String', substr($swscontents, $offset, $length)));
|
||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
|
||||||
@ -470,7 +470,7 @@ class Sws extends SwsModel
|
|||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
|
||||||
// Round dates
|
// Round dates
|
||||||
for ($i = 1; $i < $sws->getTournament()->getNoOfRounds(); $i++) {
|
for ($i = 0; $i < $sws->getTournament()->getNoOfRounds(); $i++) {
|
||||||
$length = 4;
|
$length = 4;
|
||||||
$sws->setBinaryData('Round_' . $i . '_date', self::ReadData('Date', substr($swscontents, $offset, $length)));
|
$sws->setBinaryData('Round_' . $i . '_date', self::ReadData('Date', substr($swscontents, $offset, $length)));
|
||||||
$offset += $length;
|
$offset += $length;
|
||||||
|
Loading…
Reference in New Issue
Block a user