mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-22943 fixed enrol upgrade problem, credit goes to Matt Campbell
This commit is contained in:
parent
af9059ec4c
commit
e80cfb8438
1 changed files with 1 additions and 1 deletions
|
@ -4404,7 +4404,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
// after reconfigured, uninstalled or borked enrol plugins,
|
||||
// unfortunately this may be a bit slow - but there should not be many of these
|
||||
$sqlempty = $DB->sql_empty();
|
||||
$sql = "SELECT DISTINCT c.id AS courseid, ra.enrol, e.timecreated, c.timemodified
|
||||
$sql = "SELECT DISTINCT c.id AS courseid, ra.enrol, c.timecreated, c.timemodified
|
||||
FROM {course} c
|
||||
JOIN {context} ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = 50)
|
||||
JOIN {role_assignments} ra ON (ra.contextid = ctx.id AND ra.enrol <> '$sqlempty')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue