Skip to content

Commit

Permalink
MDL-37301 fix missing AS in select
Browse files Browse the repository at this point in the history
This was breaking pg 8.3. Credit goes to Thomas Robb, thanks.
  • Loading branch information
skodak committed Dec 26, 2012
1 parent 0dc5a53 commit dd9cd33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filebrowser/file_info_context_coursecat.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function count_non_empty_children($extensions = '*', $limit = 1) {
return $cnt;
}

$rs = $DB->get_recordset_sql('SELECT ctx.id contextid, c.visible
$rs = $DB->get_recordset_sql('SELECT ctx.id AS contextid, c.visible
FROM {context} ctx, {course} c
WHERE ctx.instanceid = c.id
AND ctx.contextlevel = :courselevel
Expand All @@ -226,7 +226,7 @@ public function count_non_empty_children($extensions = '*', $limit = 1) {
return $cnt;
}

$rs = $DB->get_recordset_sql('SELECT ctx.id contextid, cat.visible
$rs = $DB->get_recordset_sql('SELECT ctx.id AS contextid, cat.visible
FROM {context} ctx, {course_categories} cat
WHERE ctx.instanceid = cat.id
AND ctx.contextlevel = :catlevel
Expand Down

0 comments on commit dd9cd33

Please sign in to comment.