Permalink
Browse files

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

  • Loading branch information...
danpoltawski committed Dec 18, 2012
1 parent 60b5ffe commit 568349fee7b426fd80b58864f5bd87b90580037f
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 568349f

Please sign in to comment.