Skip to content
Snippets Groups Projects
Commit e1f7a962 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

ensure correct array encoding, fixes #1668

Closes #1668

Merge request studip/studip!1078
parent d724b485
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment