mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'wip-MDL-40593-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
6426d2d264
@ -1920,7 +1920,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
|
||||
} else if ($thislist === false) {
|
||||
// We have $baselist cached but not $thislist. Simplier query is used to retrieve.
|
||||
$ctxselect = context_helper::get_preload_record_columns_sql('ctx');
|
||||
$sql = "SELECT ctx.instanceid id, $ctxselect
|
||||
$sql = "SELECT ctx.instanceid AS id, $ctxselect
|
||||
FROM {context} ctx WHERE ctx.contextlevel = :contextcoursecat";
|
||||
$contexts = $DB->get_records_sql($sql, array('contextcoursecat' => CONTEXT_COURSECAT));
|
||||
$thislist = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user