diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-23 16:52:23 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-23 16:55:26 +0100 |
| commit | 6dcc76537ea8209d51cba4ce38e13ff541ee1bdc (patch) | |
| tree | f0eb997d1ad79fc35680c54404af0e98e5a05fae /lib | |
| parent | f761001c137f4d99ddc7fdcdc6687501d82106df (diff) | |
prevent warning, fixes #6190
Merge request studip/studip!4688
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/classes/InstituteCalendarHelper.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/InstituteCalendarHelper.class.php b/lib/classes/InstituteCalendarHelper.class.php index 6e96865..a50acaf 100644 --- a/lib/classes/InstituteCalendarHelper.class.php +++ b/lib/classes/InstituteCalendarHelper.class.php @@ -626,8 +626,8 @@ class InstituteCalendarHelper if (!$GLOBALS['MVV_MODUL']['STATUS']['values'][$modul->stat]['public']) { return false; } - $modul_start = Semester::find($modul->start)->beginn ?: 0; - $modul_end = Semester::find($modul->end)->ende ?: PHP_INT_MAX; + $modul_start = Semester::find($modul->start)->beginn ?? 0; + $modul_end = Semester::find($modul->end)->ende ?? PHP_INT_MAX; return ($modul_start <= $course_end && $modul_end >= $course_start); } ); |
