Don't need to log in to see site-level course
This commit is contained in:
+4
-4
@@ -22,6 +22,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (! $course->category) { // This course is not a real course.
|
||||
redirect("$CFG->wwwroot");
|
||||
}
|
||||
|
||||
require_login($id);
|
||||
|
||||
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
|
||||
@@ -41,10 +45,6 @@
|
||||
|
||||
save_session("USER");
|
||||
|
||||
if (! $course->category) { // This course is not a real course.
|
||||
redirect("$CFG->wwwroot");
|
||||
}
|
||||
|
||||
$courseword = get_string("course");
|
||||
|
||||
print_header("$courseword: $course->fullname", "$course->fullname", "$course->shortname", "search.search", "", true,
|
||||
|
||||
Reference in New Issue
Block a user