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

prevent warning in migration, re #2071

parent 2df806ab
No related branches found
No related tags found
No related merge requests found
...@@ -119,12 +119,12 @@ final class CombineMyCoursesViewSettings extends Migration ...@@ -119,12 +119,12 @@ final class CombineMyCoursesViewSettings extends Migration
{ {
return [ return [
'regular' => [ 'regular' => [
'tiled' => (bool) $config['MY_COURSES_TILED_DISPLAY'], 'tiled' => (bool) ($config['MY_COURSES_TILED_DISPLAY'] ?? self::OLD_FIELDS['MY_COURSES_TILED_DISPLAY']),
'only_new' => (bool) $config['MY_COURSES_SHOW_NEW_ICONS_ONLY'], 'only_new' => (bool) ($config['MY_COURSES_SHOW_NEW_ICONS_ONLY'] ?? self::OLD_FIELDS['MY_COURSES_SHOW_NEW_ICONS_ONLY']),
], ],
'responsive' => [ 'responsive' => [
'tiled' => (bool) $config['MY_COURSES_TILED_DISPLAY_RESPONSIVE'], 'tiled' => (bool) ($config['MY_COURSES_TILED_DISPLAY_RESPONSIVE'] ?? self::OLD_FIELDS['MY_COURSES_TILED_DISPLAY_RESPONSIVE']),
'only_new' => (bool) $config['MY_COURSES_SHOW_NEW_ICONS_ONLY'], 'only_new' => (bool) ($config['MY_COURSES_SHOW_NEW_ICONS_ONLY'] ?? self::OLD_FIELDS['MY_COURSES_SHOW_NEW_ICONS_ONLY']),
], ],
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment