diff --git a/app/controllers/my_courses.php b/app/controllers/my_courses.php index 0b1601a6761f94f5d08149756ebac17c33121a42..82e97b5f7444f5bde4179b7a93d05ab660f52475 100644 --- a/app/controllers/my_courses.php +++ b/app/controllers/my_courses.php @@ -187,7 +187,7 @@ class MyCoursesController extends AuthenticatedController 'user_id' => $GLOBALS['user']->id, 'config' => [ 'allow_dozent_visibility' => Config::get()->ALLOW_DOZENT_VISIBILITY, - 'open_groups' => $GLOBALS['user']->cfg->MY_COURSES_OPEN_GROUPS, + 'open_groups' => array_values($GLOBALS['user']->cfg->MY_COURSES_OPEN_GROUPS), 'sem_number' => Config::get()->IMPORTANT_SEMNUMBER, 'allow_tiled_display' => Config::get()->MY_COURSES_ALLOW_TILED_DISPLAY, 'display_type' => Config::get()->MY_COURSES_ALLOW_TILED_DISPLAY && $GLOBALS['user']->cfg->MY_COURSES_TILED_DISPLAY ? 'tiles' : 'tables',