fix regression bug in 'incorrect top-5 customers' sorting in traffic-overview which leads to incorrect customer-links due to wrong indexing in the array; fixes #1236

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann 2024-02-04 19:54:19 +01:00
parent 594e61408d
commit 4e23b9652c
No known key found for this signature in database
GPG Key ID: C121F97338D7A352

View File

@ -141,7 +141,7 @@ class Traffic
}
// 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;
}