if (isset($USER->realuser)) { // Make sure the REAL person can also access this course
if (!isteacher($courseid, $USER->realuser)) {
print_header();
- notice(get_string("studentnotallowed", "", fullname($USER, true)), $CFG->wwwroot);
+ notice(get_string("studentnotallowed", "", fullname($USER, true)), "$CFG->wwwroot/");
}
} else { // just update their last login time
}
if (!$course->visible) {
print_header();
- notice(get_string("studentnotallowed", "", fullname($USER, true)), $CFG->wwwroot);
+ notice(get_string("studentnotallowed", "", fullname($USER, true)), "$CFG->wwwroot/");
}
if ($USER->username == "guest") {
switch ($course->guest) {