Better way to check if pairing is dummy

This commit is contained in:
Jeroen De Meerleer 2019-05-11 15:35:13 +02:00
parent f8a8f86ce9
commit e181bfefce
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ class Sws extends SwsModel
$pairing->setRound($x);
$offset += 2;
if (!($result == Result::none && $opponent == 0)) {
if ($x < $sws->getBinaryData("CurrentRound")) {
$sws->getTournament()->addPairing($pairing);
}
}