]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12945 disabled mods are not returned from get_course_mods() anymore, the results...
authorskodak <skodak>
Fri, 1 Feb 2008 07:33:37 +0000 (07:33 +0000)
committerskodak <skodak>
Fri, 1 Feb 2008 07:33:37 +0000 (07:33 +0000)
lib/datalib.php

index db589a452efe09b6f36be237d65fd07cc486f91b..ad48275b4eb946c7dd3d7e4d38da193dd687ee15 100644 (file)
@@ -1587,7 +1587,7 @@ function get_course_mods($courseid) {
                             FROM {$CFG->prefix}modules m,
                                  {$CFG->prefix}course_modules cm
                             WHERE cm.course = ".intval($courseid)."
-                            AND cm.module = m.id ");
+                            AND cm.module = m.id AND m.visible = 1"); // no disabled mods
 }