if all show all
This commit is contained in:
parent
6b285d968f
commit
7dd957f4d4
1 changed files with 3 additions and 2 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue