mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-39876-master' of git://github.com/sammarshallou/moodle
Conflicts: course/lib.php
This commit is contained in:
commit
6eee89bc8f
191 changed files with 280 additions and 274 deletions
|
@ -1811,7 +1811,7 @@ function calendar_get_allowed_types(&$allowed, $course = null) {
|
|||
|
||||
if (!empty($course)) {
|
||||
if (!is_object($course)) {
|
||||
$course = $DB->get_record('course', array('id' => $course), '*', MUST_EXIST);
|
||||
$course = get_course($course);
|
||||
}
|
||||
if ($course->id != SITEID) {
|
||||
$coursecontext = context_course::instance($course->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue