Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37301 fix missing AS in select

This was breaking pg 8.3. Credit goes to Thomas Robb, thanks.
  • Loading branch information...
commit a340e04df7ba5fd01bb0504515d5f6946f349eb1 1 parent 4a76321
@skodak skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/filebrowser/file_info_context_coursecat.php
View
4 lib/filebrowser/file_info_context_coursecat.php
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.