diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-08-20 09:44:26 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-08-20 09:44:26 +0200 |
| commit | 60af7d6163cbcf0b1c976b8a1bbc96fcc86b5415 (patch) | |
| tree | 2cb92f9508aa60e5310401440083ee2861758fe0 /app | |
| parent | b204259dd9b1cd48a7f445c473c3687914f6b209 (diff) | |
prevent php warning, fixes #5828
Closes #5828
Merge request studip/studip!4443
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin/courses.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/courses.php b/app/controllers/admin/courses.php index 16e735c..6a9a311 100644 --- a/app/controllers/admin/courses.php +++ b/app/controllers/admin/courses.php @@ -178,7 +178,7 @@ class Admin_CoursesController extends AuthenticatedController if (!empty($visibleElements['institute'])) { $inst_selector = $filter->addElement($this->getInstSelector()); if (count($inst_selector->getOptions()) === 1) { - $institute_id = $this->insts[0]['Institut_id']; + $institute_id = $this->insts[0]['Institut_id'] ?? null; } } if (!empty($visibleElements['semester'])) { |
