Reverting latest commit that was breaking some sites

under MySQL. MDL-12427. http://moodle.org/mod/forum/discuss.php?d=86238
This commit is contained in:
stronk7
2007-12-09 23:28:24 +00:00
parent 32932231fd
commit 1bc0bbb4ef
+1 -1
View File
@@ -775,7 +775,7 @@ function get_my_courses($userid, $sort=NULL, $fields=NULL, $doanything=false,$li
FROM
{$CFG->prefix}role_assignments ra
INNER JOIN {$CFG->prefix}context x ON x.id = ra.contextid
INNER JOIN {$CFG->prefix}course_categories a ON a.path LIKE ".sql_concat("'%/'", 'CAST(x.instanceid AS CHAR(10))', "'/%'")." OR x.instanceid = a.id
INNER JOIN {$CFG->prefix}course_categories a ON a.path LIKE ".sql_concat("'%/'", 'x.instanceid', "'/%'")." OR x.instanceid = a.id
INNER JOIN {$CFG->prefix}course c ON c.category = a.id
WHERE
ra.userid = $userid AND