Merge branch 'MDL-52945' of https://github.com/mr-russ/moodle
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ class course_modinfo {
|
||||
$modnames = get_module_types_names($plural);
|
||||
$modnamesused = array();
|
||||
foreach ($this->get_cms() as $cmid => $mod) {
|
||||
if (isset($modnames[$mod->modname]) && $mod->uservisible) {
|
||||
if (!isset($modnamesused[$mod->modname]) && isset($modnames[$mod->modname]) && $mod->uservisible) {
|
||||
$modnamesused[$mod->modname] = $modnames[$mod->modname];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user