MDL-12945 disabled mods are not returned from get_course_mods() anymore, the results are used in scheduled backup and other parts that do not expect disabled mods; merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2008-02-01 07:33:37 +00:00
parent c2f6fe2fbf
commit b4619aba72
+1 -1
View 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
}