We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b580d commit f9ca677Copy full SHA for f9ca677
1 file changed
block_course_modulenavigation.php
@@ -280,7 +280,7 @@ public function get_content() {
280
}
281
$thissection->modules[] = $thismod;
282
} else {
283
- $thissection->modules[] = $this->checkmodule(
+ $modulechecked = $this->checkmodule(
284
$module,
285
$context,
286
$completioninfo,
@@ -289,6 +289,10 @@ public function get_content() {
289
$myactivityid,
290
$thissection,
291
);
292
+
293
+ if($modulechecked !== null) {
294
+ $thissection->modules[] = $modulechecked;
295
+ }
296
297
298
0 commit comments