mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-35648' of git://github.com/danielneis/moodle
This commit is contained in:
commit
4a61670aed
@ -239,7 +239,7 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
$params['tilltime'] = $minloginternalreader;
|
||||
}
|
||||
$sql = "SELECT ra.userid, $usernamefields, u.idnumber, l.actioncount AS count
|
||||
FROM (SELECT * FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
FROM (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
JOIN {user} u ON u.id = ra.userid
|
||||
$groupsql
|
||||
LEFT JOIN (
|
||||
@ -264,7 +264,7 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
// Get record from sql_internal_reader and merge with records got from legacy log (if needed).
|
||||
if (!$onlyuselegacyreader) {
|
||||
$sql = "SELECT ra.userid, $usernamefields, u.idnumber, l.actioncount AS count
|
||||
FROM (SELECT * FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
FROM (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
JOIN {user} u ON u.id = ra.userid
|
||||
$groupsql
|
||||
LEFT JOIN (
|
||||
|
Loading…
x
Reference in New Issue
Block a user