mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
Baumbach treated bye as win
This commit is contained in:
parent
bbc5844017
commit
8ceb8c2f60
@ -542,8 +542,10 @@ class Tournament
|
|||||||
{
|
{
|
||||||
$totalwins = 0;
|
$totalwins = 0;
|
||||||
foreach ($player->getPairings() as $pairing) {
|
foreach ($player->getPairings() as $pairing) {
|
||||||
if (array_search($pairing->getResult(), Constants::Won) !== false) {
|
if (array_search($pairing->getResult(), Constants::NotPlayed) === false) {
|
||||||
$totalwins++;
|
if (array_search($pairing->getResult(), Constants::Won) !== false) {
|
||||||
|
$totalwins++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $totalwins;
|
return $totalwins;
|
||||||
|
Loading…
Reference in New Issue
Block a user