From 7dd957f4d4d542bb020a9daa391bd2729bf7ef4d Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 14:51:01 +0100 Subject: [PATCH] if all show all --- latestmatches.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/latestmatches.php b/latestmatches.php index 5d2bae2..fc9db32 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -34,7 +34,7 @@
"; - + $selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername']; $mapNames = array( @@ -59,10 +59,11 @@ echo "Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place"; foreach ($player_data['player_matches'] as $match) { if (isset($_GET['filter_by_match_type'])) { - if ($match['matchType'] !== $_GET['filter_by_match_type']) { + if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) { continue; } + } $date = new DateTime($match['createdAt']); $date->modify('+2 hours');