Closing SC#66 - more
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
|
||||
|
||||
$course->format = clean_param($course->format, PARAM_ALPHA);
|
||||
if (!file_exists($CFG->dirroot.'/course/format/'.$course->format.'/format.php')) {
|
||||
$course->format = 'weeks'; // Default format is weeks
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user