aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin/courses.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-06 12:41:23 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-06 12:41:23 +0000
commit9fa58ac5a5d50db46e59c8776ff56f88c8630a2d (patch)
tree140a9838a73a630fc69be0927fc047527b2d96b3 /app/controllers/admin/courses.php
parente5452ff507b5647fe63e7fab6f0696a311d8543c (diff)
prevent php-warnings, refs #2271
Merge request studip/studip!1497
Diffstat (limited to 'app/controllers/admin/courses.php')
-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 7328380..49703ea 100644
--- a/app/controllers/admin/courses.php
+++ b/app/controllers/admin/courses.php
@@ -592,7 +592,7 @@ class Admin_CoursesController extends AuthenticatedController
$inst = explode('_', Request::option('institute'));
$GLOBALS['user']->cfg->store('MY_INSTITUTES_DEFAULT', $inst[0]);
- if ($inst[1] === 'withinst') {
+ if (isset($inst[1]) && $inst[1] === 'withinst') {
$GLOBALS['user']->cfg->store('MY_INSTITUTES_INCLUDE_CHILDREN', 1);
} else {
$GLOBALS['user']->cfg->store('MY_INSTITUTES_INCLUDE_CHILDREN', 0);