diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-30 10:15:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-30 10:15:54 +0000 |
| commit | 8e9222919fa9cc06dcfbbeb10e12667c6bd95b26 (patch) | |
| tree | 74354ce945c00d09a56f90c61188d1d8c180276b /lib/models/SeminarCycleDate.php | |
| parent | b4b0e9687ec5e9dd5eb6eeb629e6486c8efb8744 (diff) | |
prevent many warnings regarding php8 on main, fixes #4631
Closes #4631
Merge request studip/studip!3448
Diffstat (limited to 'lib/models/SeminarCycleDate.php')
| -rw-r--r-- | lib/models/SeminarCycleDate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/SeminarCycleDate.php b/lib/models/SeminarCycleDate.php index 13b2520..6939632 100644 --- a/lib/models/SeminarCycleDate.php +++ b/lib/models/SeminarCycleDate.php @@ -571,7 +571,7 @@ class SeminarCycleDate extends SimpleORMap //check for calculatable holidays if ($date instanceof CourseDate || $date instanceof CourseExDate) { $holy_type = SemesterHoliday::isHoliday($date->date, false); - if ($holy_type["col"] == 3) { + if ($holy_type && $holy_type['col'] == 3) { $holiday_date = true; } } |
