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