Skip to content
Permalink
Browse files

blocks/online_users: Remove SQL "id,id" which causes errors on Oracle…

… - MDL-12425

Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>
  • Loading branch information...
martinlanghoff
martinlanghoff committed Dec 4, 2007
1 parent a3fd4ae commit fc3a00b2dc22a0559089a733332b3802e3f29855
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/online_users/block_online_users.php
@@ -89,7 +89,7 @@ function get_content() {
// 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";

0 comments on commit fc3a00b

Please sign in to comment.
You can’t perform that action at this time.