mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Baumbach treated bye as win
This commit is contained in:
parent
bbc5844017
commit
8ceb8c2f60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user