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-27 10:14:28 +02:00
parent bb478e8ddd
commit d6dcfee9f5
+1 -1
View File
@@ -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 = [