From 50a631230c0dba1106b7543ff94b99e54ce77972 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 28 Nov 2023 10:54:20 +0100 Subject: [PATCH] s --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index dda75e3..f002bfc 100644 --- a/index.php +++ b/index.php @@ -101,10 +101,10 @@ $lastMatches = array_slice($allMatches, 0, 8); if (isset($clan) && !empty($clan)) { echo ""; echo ""; - foreach ($clanmembers['clanMembers'] as $value) { + foreach ($playerRanks as $rank) { - if ($rank['name'] == $value) { + if (isset($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp'])) { $tier = $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['tier']; $subTier = $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['subTier']; @@ -114,11 +114,11 @@ $lastMatches = array_slice($allMatches, 0, 8); } else { echo ""; } - } + } - } + foreach ($clan as $key => $value) { if ($key == 'updated') { continue;
AttributeValueRank(FPP SQUAD)Points
name" . htmlspecialchars($value) . "