]> git.mjollnir.org Git - moodle.git/commitdiff
blocks/online_users: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
authormartinlanghoff <martinlanghoff>
Tue, 4 Dec 2007 06:25:56 +0000 (06:25 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 4 Dec 2007 06:25:56 +0000 (06:25 +0000)
Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>

blocks/online_users/block_online_users.php

index 06bec16b732e8b4db1f10da717e55666e3d94708..13c14ad7aef5d238885c6f2a3073990119b27075 100644 (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";