aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 16:23:47 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-17 16:23:47 +0100
commit281ef4bcb67f2c39f3cd16c3c2f6ae02d6f6296a (patch)
tree6834dc348a9d5864fb892a0c91447bc9ee9635c3
parent02e95466efcf38c2e6bedb32bf5f2c4c731dd5f3 (diff)
fix shuffling of group_ids, re #6363
-rw-r--r--app/controllers/my_studygroups.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/my_studygroups.php b/app/controllers/my_studygroups.php
index de3457b..5241706 100644
--- a/app/controllers/my_studygroups.php
+++ b/app/controllers/my_studygroups.php
@@ -164,7 +164,7 @@ class MyStudygroupsController extends AuthenticatedController
]);
// Zufällig sortieren ist in PHP schneller als in SQL
- $group_ids = shuffle($group_ids);
+ shuffle($group_ids);
$cache->write($cache_id, $group_ids, 15 * 60);
return Course::findMany($group_ids);