if all show all

This commit is contained in:
Lanta 2023-11-16 14:51:01 +01:00
parent 3917f006d2
commit a1deb0878a

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>"; 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) { foreach ($player_data['player_matches'] as $match) {
if (isset($_GET['filter_by_match_type'])) { 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; continue;
} }
} }
$date = new DateTime($match['createdAt']); $date = new DateTime($match['createdAt']);
$date->modify('+2 hours'); $date->modify('+2 hours');