mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Small bugfix: when entering the calendar with "on-the-fly" login, the breadcrumbs
now display correctly. Even though there isn't normally any link that allows you to do this.
This commit is contained in:
parent
258388f55a
commit
c3553a553f
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@
|
||||||
// If a course has been supplied in the URL, change the filters to show that one
|
// If a course has been supplied in the URL, change the filters to show that one
|
||||||
if(!empty($_GET['course'])) {
|
if(!empty($_GET['course'])) {
|
||||||
if(is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
|
if(is_numeric($_GET['course']) && $_GET['course'] > 0 && record_exists('course', 'id', $_GET['course'])) {
|
||||||
$SESSION->cal_courses_shown = $_GET['course'];
|
$SESSION->cal_courses_shown = intval($_GET['course']);
|
||||||
|
calendar_set_referring_course($SESSION->cal_courses_shown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue