diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-09 10:50:03 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-09 10:50:03 +0000 |
| commit | 5e21aa0e269f2ef3647628190016be7e1bbaed4e (patch) | |
| tree | 77cb4b376c1a2a640a55f85b50f6d17a15c28a42 | |
| parent | 87de220079773c9b01ec1543ae1ffa1a5f7f5f0f (diff) | |
prevent warnings in migration 6.0.35, fixes #4978
Closes #4978
Merge request studip/studip!3736
| -rw-r--r-- | db/migrations/6.0.35_new_schedule_improvements.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrations/6.0.35_new_schedule_improvements.php b/db/migrations/6.0.35_new_schedule_improvements.php index f97292e..4b14785 100644 --- a/db/migrations/6.0.35_new_schedule_improvements.php +++ b/db/migrations/6.0.35_new_schedule_improvements.php @@ -47,7 +47,7 @@ class NewScheduleImprovements extends Migration $new_config = [ 'start_time' => sprintf('%02u:00', $old_config['glb_start_time']), 'end_time' => sprintf('%02u:00', $old_config['glb_end_time']), - 'semester_id' => $old_config['semester_id'] + 'semester_id' => $old_config['semester_id'] ?? $old_config['glb_sem'] ?? null, ]; if (count($old_config['glb_days']) === 7) { $new_config['weekdays'] = 7; |
