diff --git a/db/migrations/5.4.3_combine_my_courses_view_settings.php b/db/migrations/5.4.3_combine_my_courses_view_settings.php index f191a530d8ab6af2f48af2ab7dbce619689412b5..0e62cbe2bc7c6b00baa67993e67ae99c0a434dd8 100644 --- a/db/migrations/5.4.3_combine_my_courses_view_settings.php +++ b/db/migrations/5.4.3_combine_my_courses_view_settings.php @@ -119,12 +119,12 @@ final class CombineMyCoursesViewSettings extends Migration { return [ 'regular' => [ - 'tiled' => (bool) $config['MY_COURSES_TILED_DISPLAY'], - 'only_new' => (bool) $config['MY_COURSES_SHOW_NEW_ICONS_ONLY'], + 'tiled' => (bool) ($config['MY_COURSES_TILED_DISPLAY'] ?? self::OLD_FIELDS['MY_COURSES_TILED_DISPLAY']), + 'only_new' => (bool) ($config['MY_COURSES_SHOW_NEW_ICONS_ONLY'] ?? self::OLD_FIELDS['MY_COURSES_SHOW_NEW_ICONS_ONLY']), ], 'responsive' => [ - 'tiled' => (bool) $config['MY_COURSES_TILED_DISPLAY_RESPONSIVE'], - 'only_new' => (bool) $config['MY_COURSES_SHOW_NEW_ICONS_ONLY'], + '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'] ?? self::OLD_FIELDS['MY_COURSES_SHOW_NEW_ICONS_ONLY']), ], ]; }