From 8faeea7f9ba158832e5b7f36fad1c00123359f42 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 27 Sep 2023 15:35:40 +0200 Subject: [PATCH] if isset --- latestmatches.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latestmatches.php b/latestmatches.php index a151365..b496740 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -50,7 +50,7 @@ error_reporting(E_ALL); ); // Display the player's match stats foreach ($players_matches as $player_data) { - if ($player_data['playername'] === $selected_player) { + if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) { echo "

Recent Matches for $selected_player

"; echo ""; echo "";
Match DateGame ModeMatchTypeMapKillsDamage DealtTime SurvivedwinPlace