aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/my_courses.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-03-03 14:07:02 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-03-04 12:09:00 +0000
commitac137b4cd1a6466d96de56b5ef2aa722c3f64ac2 (patch)
tree8bb850415b6a951c52a676e215c8969e4a47405f /app/controllers/my_courses.php
parent33f12b79f43e77d592c813238317d176a4a131f4 (diff)
ensure correct order, fixes #751
Diffstat (limited to 'app/controllers/my_courses.php')
-rw-r--r--app/controllers/my_courses.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/my_courses.php b/app/controllers/my_courses.php
index 21cde0e..395bef9 100644
--- a/app/controllers/my_courses.php
+++ b/app/controllers/my_courses.php
@@ -194,7 +194,6 @@ class MyCoursesController extends AuthenticatedController
'responsive_type' => Config::get()->MY_COURSES_ALLOW_TILED_DISPLAY && $GLOBALS['user']->cfg->MY_COURSES_TILED_DISPLAY_RESPONSIVE ? 'tiles' : 'tables',
'navigation_show_only_new' => $GLOBALS['user']->cfg->MY_COURSES_SHOW_NEW_ICONS_ONLY,
'group_by' => $this->getGroupField(),
-
],
];
@@ -1055,6 +1054,7 @@ class MyCoursesController extends AuthenticatedController
uksort($course['navigation'], function ($a, $b) use ($positions) {
return array_search($a, $positions) - array_search($b, $positions);
});
+ $course['navigation'] = array_values($course['navigation']);
return $course;
},
$courses