From 9f43d70d24e50a83908b77a9602ee8ece6744b3c Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 1 Jun 2008 13:20:02 +0000 Subject: [PATCH] MDL-15080 char to int cast problem in get_recent_enrolments() --- lib/deprecatedlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index c1062ae82b4..e0f5f0f81c0 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -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";