Merge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle
authorJun Pataleta <jun@moodle.com>
Tue, 9 Oct 2018 04:49:07 +0000 (12:49 +0800)
committerJun Pataleta <jun@moodle.com>
Tue, 9 Oct 2018 04:49:07 +0000 (12:49 +0800)
calendar/lib.php

index 2a0bc58..2a2b7a2 100644 (file)
@@ -3744,7 +3744,7 @@ function calendar_get_allowed_event_types(int $courseid = null) {
                 $ctxfields = context_helper::get_preload_record_columns_sql('ctx');
                 $sql = "SELECT
                             c.id, c.visible, {$ctxfields}
-                        FROM {course}
+                        FROM {course} c
                         JOIN {context} ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = :contextlevel)";
                 $params = [
                     'contextlevel' => CONTEXT_COURSE,