aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrations/5.4.3_combine_my_courses_view_settings.php8
1 files changed, 4 insertions, 4 deletions
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 f191a53..0e62cbe 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']),
],
];
}