mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-15080 char to int cast problem in get_recent_enrolments()
This commit is contained in:
parent
dfdaabd6a8
commit
9f43d70d24
@ -194,7 +194,7 @@ function get_recent_enrolments($courseid, $timestart) {
|
|||||||
AND l.course = ?
|
AND l.course = ?
|
||||||
AND l.module = 'course'
|
AND l.module = 'course'
|
||||||
AND l.action = 'enrol'
|
AND l.action = 'enrol'
|
||||||
AND l.info = u.id
|
AND ".$DB->sql_cast_char2int('l.info')." = u.id
|
||||||
AND u.id = ra.userid
|
AND u.id = ra.userid
|
||||||
AND ra.contextid ".get_related_contexts_string($context)."
|
AND ra.contextid ".get_related_contexts_string($context)."
|
||||||
ORDER BY l.time ASC";
|
ORDER BY l.time ASC";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user