aboutsummaryrefslogtreecommitdiff
path: root/lib/classes
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:54:32 +0100
commit28d40af3e276391d8b3456b530fea5fc7877cdb9 (patch)
tree4b079dc7dcff27c90beb12f3b1b8037288eb809a /lib/classes
parent52a6c9c7c8eb262313a7137cb76f5f1904c01046 (diff)
prevent warning, fixes #6190
Merge request studip/studip!4688
Diffstat (limited to 'lib/classes')
-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);
}
);