ENHANCEMENT: No pairing object if pairing is dummy

This commit is contained in:
Jeroen De Meerleer 2019-05-01 19:56:49 +02:00
parent 516740643e
commit 5abc1ca8d3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 3 additions and 2 deletions

View File

@ -90,5 +90,4 @@ class Round
{ {
$this->pairings = $pairings; $this->pairings = $pairings;
} }
} }

View File

@ -621,10 +621,12 @@ class Sws extends SwsModel
$pairing->setRound($x); $pairing->setRound($x);
$offset += 2; $offset += 2;
if (!($result == Result::none && $opponent == 0)) {
$sws->getTournament()->addPairing($pairing); $sws->getTournament()->addPairing($pairing);
} }
} }
} }
}
$sws->getTournament()->pairingsToRounds(); $sws->getTournament()->pairingsToRounds();
return $sws; return $sws;