From ea9eae304decb9e77784a70410b33418a7353e78 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 12 Feb 2019 18:04:12 +0100 Subject: [PATCH] Fixed reading tournamentyear --- src/Sws.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sws.php b/src/Sws.php index ef5500f..c3b667c 100644 --- a/src/Sws.php +++ b/src/Sws.php @@ -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;