aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-08-20 09:44:26 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-08-20 09:44:26 +0200
commit60af7d6163cbcf0b1c976b8a1bbc96fcc86b5415 (patch)
tree2cb92f9508aa60e5310401440083ee2861758fe0 /app
parentb204259dd9b1cd48a7f445c473c3687914f6b209 (diff)
prevent php warning, fixes #5828
Closes #5828 Merge request studip/studip!4443
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin/courses.php2
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'])) {