From 7c1d2adafae8d53658a66de282da8c74d0a1cbbb Mon Sep 17 00:00:00 2001 From: gr00tie Date: Tue, 26 Sep 2023 20:15:56 +0200 Subject: [PATCH] Update user_stats.php --- user_stats.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/user_stats.php b/user_stats.php index d2f8199..a647844 100644 --- a/user_stats.php +++ b/user_stats.php @@ -47,14 +47,7 @@ error_reporting(E_ALL); echo ""; echo "
"; - if(isset($_GET['player']){ - $player_select = $_GET['player']; - } - else{ - $player_select = $_POST['selected_player']; - } - - $selected_player = $player_select ?? array_key_first($players_data[$selected_mode]); + $selected_player = $_POST['selected_player'] ?? array_key_first($players_data[$selected_mode]); // Fetch the player stats based on game mode and selected player if (isset($players_data[$selected_mode][$selected_player])) {