Skip to content
Browse files

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

  • Loading branch information...
1 parent 53f7c0c commit f454c9884f3215fae5ec7123389d3ad0f6301ff1 @danpoltawski danpoltawski committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/search.php
View
2 course/search.php
@@ -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 f454c98

Please sign in to comment.
Something went wrong with that request. Please try again.