MDL-73316 course: Prevent further redirects on redirect

This commit is contained in:
Mathew May 2022-01-17 12:35:34 +08:00
parent 76eaf6ee5f
commit 0d279d3f24

View File

@ -207,7 +207,7 @@
if ($course->id == SITEID) {
// This course is not a real course.
redirect($CFG->wwwroot .'/');
redirect($CFG->wwwroot .'/?redirect=0');
}
// Determine whether the user has permission to download course content.