diff --git a/lib/classes/AdminCourseFilter.class.php b/lib/classes/AdminCourseFilter.class.php index a934ebe668085abe1264efbb593da6c28b5864c7..da8ce54f7e055ad8771f3d79e7c8bda739fd9087 100644 --- a/lib/classes/AdminCourseFilter.class.php +++ b/lib/classes/AdminCourseFilter.class.php @@ -126,7 +126,7 @@ class AdminCourseFilter } if ($GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER && $GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER !== 'all') { - if (str_contains(Request::option('course_type'), '_')) { + if (str_contains($GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER, '_')) { list($sem_class_id, $sem_type_id) = explode('_', $GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER); $this->query->where('course_type', 'seminare.status = :course_type', ['course_type' => $sem_type_id]); } else {