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:
martinlanghoff
2007-12-04 06:25:56 +00:00
parent 2c3d575587
commit e88370a6a3
+1 -1
View File
@@ -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";