Skip to content

Commit

Permalink
MDL-36259 - change case of table alias to match definition
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 18, 2012
1 parent 53f7c0c commit f454c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/search.php
Expand Up @@ -176,7 +176,7 @@
$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));
Expand Down

0 comments on commit f454c98

Please sign in to comment.