Don't need to log in to see site-level course

This commit is contained in:
martin
2002-09-21 07:03:54 +00:00
parent b92ea9450c
commit effbcca27c
+4 -4
View File
@@ -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,