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
1 changed files with 4 additions and 2 deletions

View File

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