mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-72182 user: cross-DB compatibility for getting user pages/blocks.
This commit is contained in:
parent
0780e87f06
commit
b31b37aaae
@ -244,7 +244,7 @@ function my_reset_page_for_all_users(
|
||||
JOIN {context} ctx ON ctx.instanceid = p.userid AND ctx.contextlevel = :usercontextlevel
|
||||
JOIN {block_instances} bi ON bi.parentcontextid = ctx.id
|
||||
AND bi.pagetypepattern = :pagetypepattern
|
||||
AND (bi.subpagepattern IS NULL OR bi.subpagepattern = " . $DB->sql_concat("''", 'p.id') . ")
|
||||
AND (bi.subpagepattern IS NULL OR bi.subpagepattern = " . $DB->sql_cast_to_char('p.id') . ")
|
||||
WHERE p.private = :private
|
||||
AND p.name = :name
|
||||
AND p.userid $infragment";
|
||||
|
Loading…
x
Reference in New Issue
Block a user