This commit is contained in:
Lanta 2023-11-22 15:27:04 +01:00
parent d53a2de62c
commit 9bd4c304b8

View file

@ -12,7 +12,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
<?php
include './includes/navigation.php';
include './includes/header.php';
?>
?>
<main>
<section>
@ -27,7 +27,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
echo "<form method='get' action=''>";
foreach ($players['clanMembers'] as $player) {
echo "<button type='submit' name='selected_player' value='$player' class='btn'>$player</button>";
echo "<button type='submit' name='selected_player' value='$player' class='btn'>$player</button>";
}
echo "</form><br>";
@ -64,11 +64,9 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
if ($match['stats']['name'] === $selected_player) {
foreach ($player_data['player_matches'] as $match) {
if (isset($_GET['filter_by_match_type'])) {
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
continue;
}
if (isset($_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('+1 hours');