From f8655d78ab9d1a7d1106406de6906b1cb6ea3a29 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 14 Nov 2023 20:59:11 +0100 Subject: [PATCH] patricipent --- matchinfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matchinfo.php b/matchinfo.php index 587bcbc..6ddc9cc 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -19,7 +19,7 @@ if (isset($_GET['matchid'])) { // Loop through the JSON data to extract player stats foreach ($jsonData['included'] as $includedItem) { - + if ($includedItem['type'] == "participant"){ $playerStats = $includedItem['attributes']['stats']; echo ""; echo "" . htmlspecialchars($playerStats['name']) . ""; @@ -28,7 +28,7 @@ if (isset($_GET['matchid'])) { echo "" . htmlspecialchars($playerStats['timeSurvived']) . ""; echo "" . htmlspecialchars($playerStats['winPlace']) . ""; echo ""; - + } } echo "";