MDL-14621 fix warning when module code missing and editing course

This commit is contained in:
skodak
2008-04-30 12:39:31 +00:00
parent 7c3b032ec0
commit 0f56c9da08
+4
View File
@@ -1318,6 +1318,10 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
continue;
}
} else {
if (!file_exists("$CFG->dirroot/mod/$mod->modname/lib.php")) {
// module not installed
continue;
}
if (!coursemodule_visible_for_user($mod)) {
// full visibility check
continue;