]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15080 char to int cast problem in get_recent_enrolments()
authorskodak <skodak>
Sun, 1 Jun 2008 13:20:02 +0000 (13:20 +0000)
committerskodak <skodak>
Sun, 1 Jun 2008 13:20:02 +0000 (13:20 +0000)
lib/deprecatedlib.php

index c1062ae82b4921686c90db805e7d1e72cadc9796..e0f5f0f81c0eaa6db8dc11dd15b1bc8f4b6b65aa 100644 (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";