mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
fixing a small syntax oddity that breaks get_my_courses in postgres. quoting " means escape table, not string
This commit is contained in:
parent
d3f31bf2d9
commit
808fae8f05
@ -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('"%/"', '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
|
||||
|
Loading…
x
Reference in New Issue
Block a user