sql_concact() can handle more than 2 params, thanks Eloy

This commit is contained in:
toyomoyo
2007-07-04 02:03:47 +00:00
parent a04c3b55b9
commit 0674ff6ca8
+1 -1
View File
@@ -760,7 +760,7 @@ SELECT
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('"%/"', sql_concat('x.instanceid', '"/%"'))." OR a.id=x.instanceid) AND x.contextlevel=40
INNER JOIN {$CFG->prefix}course_categories a ON (a.path LIKE ".sql_concat('"%/"', 'x.instanceid', '"/%"')." OR a.id=x.instanceid) AND x.contextlevel=40
INNER JOIN {$CFG->prefix}course c ON c.category=a.id
WHERE
ra.userid=$userid