From 03c9500e3c5d23f2674ad4c5834fc57314bc55d2 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 1 May 2019 19:22:06 +0200 Subject: [PATCH] Updated Showing the pairings of a specific player (markdown) --- Showing-the-pairings-of-a-specific-player.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Showing-the-pairings-of-a-specific-player.md b/Showing-the-pairings-of-a-specific-player.md index 77ecba9..a8ada23 100644 --- a/Showing-the-pairings-of-a-specific-player.md +++ b/Showing-the-pairings-of-a-specific-player.md @@ -16,7 +16,7 @@ $magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament()); $magnus = $magnusses[0]; -foreach ($magnus->getPairings() as $game) { +foreach ($magnus->getPairings() as $pairing) { $player = $pairing->getPlayer()->getName(); if (!is_null($pairing->getOpponent())) { $opponent = $pairing->getOpponent()->getName();