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 "| Attribute | Value | Rank(FPP SQUAD) | Points |
";
- 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 "| name | " . htmlspecialchars($value) . " |  | |
";
}
- }
+
}
- }
+
foreach ($clan as $key => $value) {
if ($key == 'updated') {
continue;