if all show all

This commit is contained in:
Thijs Stobbelaar 2023-11-16 14:51:01 +01:00
parent 6b285d968f
commit 7dd957f4d4

View file

@ -59,10 +59,11 @@
echo "<tr><th>Match Date</th><th>Game Mode</th><th>Match Type</th><th>Map</th><th>Kills</th><th>Damage Dealt</th><th>Time Survived</th><th>win Place</th></tr>";
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');