blocks/online_users: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
Credit for the fix goes to Dennis Rochford <[email protected]>
This commit is contained in:
@@ -89,7 +89,7 @@ class block_online_users extends block_base {
|
||||
// user has a hidden role assigned at this context or any parent contexts,
|
||||
// ignore this user
|
||||
|
||||
$SQL = "SELECT id,id FROM {$CFG->prefix}role_assignments
|
||||
$SQL = "SELECT id FROM {$CFG->prefix}role_assignments
|
||||
WHERE userid = $puser->id
|
||||
AND contextid $pcontext
|
||||
AND hidden = 1";
|
||||
|
||||
Reference in New Issue
Block a user