Permalink
Browse files

MDL-36259 - change case of table alias to match definition

  • Loading branch information...
1 parent 3ab43c0 commit 22898af76f03ec16d194558be41aeb14d714658b @danpoltawski danpoltawski committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/search.php
View
@@ -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));

0 comments on commit 22898af

Please sign in to comment.