mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-73316 course: Prevent further redirects on redirect
This commit is contained in:
parent
76eaf6ee5f
commit
0d279d3f24
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user