aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-12-16 15:37:38 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-12-16 15:37:38 +0000
commit3d3ad862c33a5951c4a218589b8076ed8ac1d977 (patch)
treeb91e5af63ff09c56a1f8c6f9ddfbaee624f3adbd /db
parentb141343bcdff3b992ed95e8106002ec54020d81a (diff)
fixed errors in new schedule, re #4421
Merge request studip/studip!3757
Diffstat (limited to 'db')
-rw-r--r--db/migrations/6.0.35_new_schedule_improvements.php2
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 4b14785..13708f5 100644
--- a/db/migrations/6.0.35_new_schedule_improvements.php
+++ b/db/migrations/6.0.35_new_schedule_improvements.php
@@ -49,7 +49,7 @@ class NewScheduleImprovements extends Migration
'end_time' => sprintf('%02u:00', $old_config['glb_end_time']),
'semester_id' => $old_config['semester_id'] ?? $old_config['glb_sem'] ?? null,
];
- if (count($old_config['glb_days']) === 7) {
+ if (!empty($old_config['glb_days']) && count($old_config['glb_days']) === 7) {
$new_config['weekdays'] = 7;
} else {
$new_config['weekdays'] = 5;