Baumbach treated bye as win

This commit is contained in:
Jeroen De Meerleer 2019-09-27 17:41:27 +02:00
parent bbc5844017
commit 8ceb8c2f60
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -542,10 +542,12 @@ class Tournament
{ {
$totalwins = 0; $totalwins = 0;
foreach ($player->getPairings() as $pairing) { foreach ($player->getPairings() as $pairing) {
if (array_search($pairing->getResult(), Constants::NotPlayed) === false) {
if (array_search($pairing->getResult(), Constants::Won) !== false) { if (array_search($pairing->getResult(), Constants::Won) !== false) {
$totalwins++; $totalwins++;
} }
} }
}
return $totalwins; return $totalwins;
} }