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 <d00p@froxlor.org>
  • Loading branch information
d00p committed Feb 4, 2024
1 parent 594e614 commit 4e23b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Traffic/Traffic.php
Expand Up @@ -141,7 +141,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 4e23b96

Please sign in to comment.