Skip to content
Snippets Groups Projects
Commit 20bf2d06 authored by Peter Fricke's avatar Peter Fricke
Browse files

Update lib.php

Fixed wrong parameters
parent 79e62e66
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ function local_hsh_boostnavigation_extend_navigation(global_navigation $navigati ...@@ -53,7 +53,7 @@ function local_hsh_boostnavigation_extend_navigation(global_navigation $navigati
$collapsenodesforjs[] = $customnav->key; $collapsenodesforjs[] = $customnav->key;
// Alle Kurse abfragen, in die die Person eingeschrieben ist // Alle Kurse abfragen, in die die Person eingeschrieben ist
$courses = enrol_get_my_courses('*', ''); $courses = enrol_get_my_courses();
if (!empty($courses)) { if (!empty($courses)) {
usort($courses, function($a, $b){ usort($courses, function($a, $b){
return strcasecmp($a->shortname, $b->shortname); return strcasecmp($a->shortname, $b->shortname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment