From 98a392f66baf05b49eca82b7da6c85bfa187c6db Mon Sep 17 00:00:00 2001 From: gr00tie Date: Tue, 26 Sep 2023 20:04:03 +0200 Subject: [PATCH] Update user_stats.php Kun je jezelf bookmarken --- user_stats.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/user_stats.php b/user_stats.php index a647844..d2f8199 100644 --- a/user_stats.php +++ b/user_stats.php @@ -47,7 +47,14 @@ error_reporting(E_ALL); echo ""; echo "
"; - $selected_player = $_POST['selected_player'] ?? array_key_first($players_data[$selected_mode]); + 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]); // Fetch the player stats based on game mode and selected player if (isset($players_data[$selected_mode][$selected_player])) {