]> git.mjollnir.org Git - moodle.git/commitdiff
Removing un-needed DISTINCT here actually solves MDL-11546
authormoodler <moodler>
Tue, 2 Oct 2007 09:45:00 +0000 (09:45 +0000)
committermoodler <moodler>
Tue, 2 Oct 2007 09:45:00 +0000 (09:45 +0000)
(after discussion with Martin Langhoff in Skype)

user/index.php

index c637b8422e0cf12a53f435143797a910131d9f05..dc2da43b304c874cbfa46053520708f86b7f1733 100644 (file)
                       ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel ';    
         $select .= $course->enrolperiod?', r.timeend ':'';
     } else {
-        $select = 'SELECT DISTINCT u.id, u.username, u.firstname, u.lastname,
+        $select = 'SELECT u.id, u.username, u.firstname, u.lastname,
                       u.email, u.city, u.country, u.picture,
                       u.lang, u.timezone, u.emailstop, u.maildisplay, u.imagealt,
                       u.lastaccess,
                       ctx.id AS ctxid, ctx.path AS ctxpath,
                       ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel ';
-     
     }
 
     if ($context->id != $frontpagectx->id) {