1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-62619 privacy: Fix a missing alias in the blog provider class

The new implementation revealed another existing bug that did not expose
before due to coincidently same named table alias in the outer query.
This commit is contained in:
David Mudrák 2018-07-04 09:46:53 +02:00
parent cea03cbd43
commit c4e7c3cac4

@ -135,7 +135,7 @@ class provider implements
if ($DB->record_exists('blog_external', ['userid' => $userid])) {
$sql = "
SELECT ctx.id
FROM {context}
FROM {context} ctx
WHERE ctx.contextlevel = :ctxlevel
AND ctx.instanceid = :ctxuserid";
$params = [