mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-12945 fixing mod indexes broken by previous commit; merged from MOODLE_19_STABLE
This commit is contained in:
parent
78117f38bc
commit
52ae8c057a
8 changed files with 72 additions and 43 deletions
|
@ -45,8 +45,9 @@
|
|||
|
||||
$currentsection = '';
|
||||
|
||||
foreach ($cms as $cm) {
|
||||
if (!coursemodule_visible_for_user($cm)) {
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
foreach ($modinfo->instances['survey'] as $cm) {
|
||||
if (!$cm->uservisible) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue