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