BUGFIX: wrong indexes

This commit is contained in:
Jeroen De Meerleer 2022-12-27 10:03:41 +01:00
parent c49ea32f08
commit 86244247cf
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 11 additions and 14 deletions

View File

@ -261,26 +261,23 @@ class Swar5 implements ReaderInterface
$applycustompoints = false; $applycustompoints = false;
switch ($this->readData('Int', $swshandle)) { switch ($this->readData('Int', $swshandle)) {
case 4:
case 5:
case 6:
$system = TournamentSystem::CLOSED;
break;
case 7:
case 8:
$system = TournamentSystem::AMERICAN;
break;
case 3:
$applycustompoints = true;
case 0: case 0:
case 1: case 1:
case 2: case 2:
case 3:
default: default:
$system = TournamentSystem::SWISS; $system = TournamentSystem::SWISS;
break; break;
case 4:
$applycustompoints = true;
$system = TournamentSystem::SWISS;
break;
case 5:
case 6:
case 7:
$system = TournamentSystem::CLOSED;
break;
case 8:
case 9:
$system = TournamentSystem::AMERICAN;
break;
} }
$this->Tournament->System = new TournamentSystem($system); $this->Tournament->System = new TournamentSystem($system);