Skip to content

Commit

Permalink
Fix for bug 1312 ... just for robustness in the URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 6, 2004
1 parent 68d0db3 commit 319b472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function require_login($courseid=0) {
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
Expand All @@ -395,7 +395,7 @@ function require_login($courseid=0) {
}
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) {
Expand Down

0 comments on commit 319b472

Please sign in to comment.