MDL-36259 - change case of table alias to match definition
authorDan Poltawski <dan@moodle.com>
Tue, 18 Dec 2012 06:26:55 +0000 (14:26 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 18 Dec 2012 06:27:13 +0000 (14:27 +0800)
course/search.php

index 805512f..1dda021 100644 (file)
@@ -176,7 +176,7 @@ if (!empty($blocklist) and confirm_sesskey()) {
     $blockname = $DB->get_field('block', 'name', array('id' => $blocklist));
     $courses = array();
     list($select, $join) = context_instance_preload_sql('c.id', CONTEXT_COURSE, 'ctx');
-    $sql = "SELECT C.* $select FROM {course} c
+    $sql = "SELECT c.* $select FROM {course} c
             $join JOIN {block_instances} bi ON bi.parentcontextid = ctx.id
             WHERE bi.blockname = ?";
     $courses = $DB->get_records_sql($sql, array($blockname));