Updated Showing the pairings of a specific player (markdown)

Jeroen De Meerleer 2019-05-01 19:22:06 +02:00
parent 6115d00821
commit 03c9500e3c

@ -16,7 +16,7 @@ $magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament());
$magnus = $magnusses[0]; $magnus = $magnusses[0];
foreach ($magnus->getPairings() as $game) { foreach ($magnus->getPairings() as $pairing) {
$player = $pairing->getPlayer()->getName(); $player = $pairing->getPlayer()->getName();
if (!is_null($pairing->getOpponent())) { if (!is_null($pairing->getOpponent())) {
$opponent = $pairing->getOpponent()->getName(); $opponent = $pairing->getOpponent()->getName();