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...
1 parent b5558e5 commit 414b66be32481058330582cb590ccba82f9d6367 martinlanghoff committed Dec 4, 2007
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 414b66b

Please sign in to comment.