Skip to content
Snippets Groups Projects
Commit 9fa58ac5 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings, refs #2271

Merge request studip/studip!1497
parent e5452ff5
No related branches found
No related tags found
No related merge requests found
...@@ -592,7 +592,7 @@ class Admin_CoursesController extends AuthenticatedController ...@@ -592,7 +592,7 @@ class Admin_CoursesController extends AuthenticatedController
$inst = explode('_', Request::option('institute')); $inst = explode('_', Request::option('institute'));
$GLOBALS['user']->cfg->store('MY_INSTITUTES_DEFAULT', $inst[0]); $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); $GLOBALS['user']->cfg->store('MY_INSTITUTES_INCLUDE_CHILDREN', 1);
} else { } else {
$GLOBALS['user']->cfg->store('MY_INSTITUTES_INCLUDE_CHILDREN', 0); $GLOBALS['user']->cfg->store('MY_INSTITUTES_INCLUDE_CHILDREN', 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment