test without filter
This commit is contained in:
parent
23b7ddac83
commit
7eade7a5d3
1 changed files with 6 additions and 6 deletions
|
|
@ -31,7 +31,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
|
|
||||||
}
|
}
|
||||||
echo "</form><br>";
|
echo "</form><br>";
|
||||||
$selected_player = $_GET['selected_player'] ?? $players[0];
|
$selected_player = $_GET['selected_player'] ?? $players['clanMembers'][0];
|
||||||
echo "<form method='get' action=''>
|
echo "<form method='get' action=''>
|
||||||
<input type='submit' name='filter_by_match_type' value='all' class='btn'>
|
<input type='submit' name='filter_by_match_type' value='all' class='btn'>
|
||||||
<input type='submit' name='filter_by_match_type' value='airoyale' class='btn'>
|
<input type='submit' name='filter_by_match_type' value='airoyale' class='btn'>
|
||||||
|
|
@ -64,11 +64,11 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
|
||||||
if ($match['stats']['name'] === $selected_player) {
|
if ($match['stats']['name'] === $selected_player) {
|
||||||
|
|
||||||
|
|
||||||
if (isset($_GET['filter_by_match_type'])) {
|
// if (isset($_GET['filter_by_match_type'])) {
|
||||||
if ($_GET['filter_by_match_type'] !== 'all' && $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('+1 hours');
|
$date->modify('+1 hours');
|
||||||
$formattedDate = $date->format('m-d H:i:s');
|
$formattedDate = $date->format('m-d H:i:s');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue