Skip to content

Commit

Permalink
MDL-72182 user: cross-DB compatibility for getting user pages/blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Feb 6, 2023
1 parent 0780e87 commit b31b37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit b31b37a

Please sign in to comment.