diff --git a/controllers/show.php b/controllers/show.php index 1f019a3..6527884 100644 --- a/controllers/show.php +++ b/controllers/show.php @@ -117,7 +117,7 @@ protected function prepareCourses($ids) $_course['visitdate'] = object_get_visit($course->id, 'sem', ''); $user_status = @$member_ships[$course->id]['status']; - if(!$user_status && Config::get()->DEPUTIES_ENABLE && isDeputy($GLOBALS['user']->id, $course->id)) { + if (!$user_status && Config::get()->DEPUTIES_ENABLE && isDeputy($GLOBALS['user']->id, $course->id)) { $user_status = 'dozent'; $is_deputy = true; } else { @@ -158,7 +158,7 @@ protected function getCourses() $_ids[] = $a['Seminar_id']; } }); - $courses[$sem['name']]['courses'] = $cm; + $courses[$sem['name']] = $cm; } } @@ -177,7 +177,7 @@ protected function getCourses() $_ids[] = $a['Seminar_id']; } }); - $courses['unbegrenzt laufende']['courses'] = $cm; + $courses['unbegrenzt laufende'] = $cm; } } diff --git a/views/show/settings.php b/views/show/settings.php index 2ada69a..4074733 100644 --- a/views/show/settings.php +++ b/views/show/settings.php @@ -1,25 +1,27 @@