Skip to content

Commit b7758d1

Browse files
authored
Merge pull request #46 from eurofurence/FCEA-FixV2
Fixed Issue with init state of FCEA
2 parents 6d66bae + f46febb commit b7758d1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/Http/Controllers/FCEA/DashboardController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ private function getFursuitRanking(Collection $myFursuitInfos, int $rankingSize)
309309

310310
private function AddPlaceholderOnJump(Collection $userRanking) : Collection
311311
{
312+
// No need to add separators if there is no data
313+
if ($userRanking->isEmpty()) {
314+
return $userRanking;
315+
}
316+
312317
$lastID = $userRanking->first()->id;
313318
// Iterate manually to find jumps in id (every id is used at least once) always starting with 1
314319
foreach ($userRanking as $ranking) {

0 commit comments

Comments
 (0)