MDL-15080 char to int cast problem in get_recent_enrolments()

This commit is contained in:
skodak 2008-06-01 13:20:02 +00:00
parent dfdaabd6a8
commit 9f43d70d24

View File

@ -194,7 +194,7 @@ function get_recent_enrolments($courseid, $timestart) {
AND l.course = ?
AND l.module = 'course'
AND l.action = 'enrol'
AND l.info = u.id
AND ".$DB->sql_cast_char2int('l.info')." = u.id
AND u.id = ra.userid
AND ra.contextid ".get_related_contexts_string($context)."
ORDER BY l.time ASC";