Skip to content

Commit

Permalink
fix regression bug in 'incorrect top-5 customers' sorting in traffic-…
Browse files Browse the repository at this point in the history
…overview which leads to incorrect customer-links due to wrong indexing in the array; fixes #1236

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Feb 4, 2024
1 parent c188f04 commit c9faa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Traffic/Traffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function getCustomerStats(array $userinfo, string $range = null, b
}

// sort users by total traffic
usort($users, function ($user_a, $user_b) {
uasort($users, function ($user_a, $user_b) {
if ($user_a['total'] == $user_b['total']) {
return 0;
}
Expand Down

0 comments on commit c9faa38

Please sign in to comment.