From 35c010e3d2d058a12905e3cd353b121df19506f8 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Wed, 22 Nov 2023 15:16:02 +0100 Subject: [PATCH] $selected_match --- latestmatches.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/latestmatches.php b/latestmatches.php index 1349129..956428d 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -31,7 +31,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo } echo "
"; - $selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername']; + $selected_player = $_GET['selected_player'] ?? $players[0]; echo "
@@ -57,8 +57,8 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo "Tiger_Main" => "Taego" ); // Display the player's match stats - foreach ($players_matches as $player_data) { - if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) { + foreach ($players_matches as $selected_match) { + if (isset($selected_match['stats']['name']) === $selected_player) { echo "

Recent Matches for $selected_player

"; echo "";