diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-27 07:49:10 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-09-27 07:49:10 +0000 |
| commit | 174f11c56e1ce36296e49549da357db7022bf25e (patch) | |
| tree | e1411291d0e7c32e65cf865c10acbba15ed3b037 /lib/models/Course.class.php | |
| parent | 81e32c0b8c6f8b6ab94a4cd271e6b308efeb3c5f (diff) | |
fixes #3207
Closes #3207
Merge request studip/studip!2174
Diffstat (limited to 'lib/models/Course.class.php')
| -rw-r--r-- | lib/models/Course.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php index 4c471ea..9005373 100644 --- a/lib/models/Course.class.php +++ b/lib/models/Course.class.php @@ -880,7 +880,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe $this->setEndSemester($this->duration_time == -1 ? null : Semester::findByTimestamp($this->start_time + $this->duration_time)); } if ($this->isOpenEnded()) { - $this->start_time = $this->start_time ?: Semester::findCurrent()->beginn; + $this->start_time = $this->start_time ?: Semester::findCurrent()->beginn ?? time(); $this->duration_time = -1; } else { $this->start_time = $this->getStartSemester()->beginn; |
