Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 22898af76f03ec16d194558be41aeb14d714658b 1 parent 3ab43c0
@danpoltawski danpoltawski authored
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));
Please sign in to comment.
Something went wrong with that request. Please try again.