diff --git a/latestmatches.php b/latestmatches.php
index c9542ef..4baa8ea 100644
--- a/latestmatches.php
+++ b/latestmatches.php
@@ -61,27 +61,27 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
echo "
";
echo "| Match Date | Game Mode | Match Type | Map | Kills | Damage Dealt | Time Survived | win Place |
";
foreach ($players_matches as $match) {
- foreach($match['stats'] as $stats)
- if ($stats['name'] === $selected_player) {
+ foreach ($match['stats'] as $stats) {
+ if ($stats['name'] === $selected_player) {
- 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');
- $formattedDate = $date->format('m-d H:i:s');
+ $date = new DateTime($match['createdAt']);
+ $date->modify('+1 hours');
+ $formattedDate = $date->format('m-d H:i:s');
- $matchType = $match['matchType'];
- $gameMode = $match['gameMode'];
- $mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'];
- $kills = $stats['kills'];
- $damage = number_format($stats['damageDealt'], 0, '.', '');
- $timeSurvived = $stats['timeSurvived'];
- $winPlace = $stats['winPlace'];
- echo "
+ $matchType = $match['matchType'];
+ $gameMode = $match['gameMode'];
+ $mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'];
+ $kills = $stats['kills'];
+ $damage = number_format($stats['damageDealt'], 0, '.', '');
+ $timeSurvived = $stats['timeSurvived'];
+ $winPlace = $stats['winPlace'];
+ echo "
| " . $formattedDate . " |
" . $gameMode . " |
" . $matchType . " |
@@ -95,8 +95,8 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
+ }
}
-
}
echo "
";
?>