Skip to content
Snippets Groups Projects
Commit 98d7db55 authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

BIEST #490

parent 5ae97ea0
No related branches found
No related tags found
No related merge requests found
......@@ -199,12 +199,12 @@ class Contents_CoursewareController extends AuthenticatedController
$this->all_semesters = false;
$this->semesters = [Semester::find($sem_key)];
}
$params = [
'order_by' => null,
'order' => 'asc',
'studygroups_enabled' => Config::get()->MY_COURSES_ENABLE_STUDYGROUPS,
'deputies_enabled' => Config::get()->DEPUTIES_ENABLE,
];
usort($this->semesters, function ($a, $b) {
if ($a->beginn === $b->beginn) {
return 0;
}
return ($a->beginn > $b->beginn) ? -1 : 1;
});
$this->sem_courses = $this->getCoursewareCourses($sem_key);
}
......
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