]> git.mjollnir.org Git - moodle.git/commitdiff
Hide hidden activities from students on Recent Activity page
authormoodler <moodler>
Wed, 10 Mar 2004 13:38:08 +0000 (13:38 +0000)
committermoodler <moodler>
Wed, 10 Mar 2004 13:38:08 +0000 (13:38 +0000)
course/lib.php

index e909505f3134a548d3ad5c9c2451e39726c2d261..6559233595c4e5db1ed3d17ed75ae350311b6143 100644 (file)
@@ -85,6 +85,10 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0,
                 if ($mod->mod == "label") {
                     continue;
                 }  
+                if (!$mod->visible and !$isteacher) {
+                    continue;
+                }
+
                 if ($mod->section > 0 and $section <> $mod->section) {
                     $activities["section/$mod->section"] = "-------------- $strsection $mod->section --------------";
                 }