diff --git a/mod/bigbluebuttonbn/classes/output/index.php b/mod/bigbluebuttonbn/classes/output/index.php index 2bc8012bcbd..c0056598bd3 100644 --- a/mod/bigbluebuttonbn/classes/output/index.php +++ b/mod/bigbluebuttonbn/classes/output/index.php @@ -78,7 +78,9 @@ class index implements renderable { ]; $table->align = ['center', 'left', 'center', 'center', 'center', 'center', 'center']; - foreach ($this->instances as $instance) { + $modinfo = get_fast_modinfo($this->course); + foreach ($modinfo->instances['bigbluebuttonbn'] as $cm) { + $instance = $this->instances[$cm->id]; $this->add_instance_to_table($output, $table, $instance); }