aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-23 16:52:23 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-23 16:55:26 +0100
commit6dcc76537ea8209d51cba4ce38e13ff541ee1bdc (patch)
treef0eb997d1ad79fc35680c54404af0e98e5a05fae
parentf761001c137f4d99ddc7fdcdc6687501d82106df (diff)
prevent warning, fixes #6190
Merge request studip/studip!4688
-rw-r--r--lib/classes/InstituteCalendarHelper.class.php4
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);
}
);