mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Bug #363. When everyting is hidden at main-menu, error occurs. Changed the get_all_mods function to check this.
This commit is contained in:
parent
e6cf424727
commit
c7da6f7a8f
@ -472,7 +472,9 @@ function get_all_mods($courseid, &$mods, &$modnames, &$modnamesplural, &$modname
|
||||
$modnamesused[$mod->modname] = $modnames[$mod->modname];
|
||||
}
|
||||
}
|
||||
asort($modnamesused);
|
||||
if ($modnamesused) {
|
||||
asort($modnamesused);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user