quiz recent activity MDL-24528 was setting the activity userid to the attempt id...
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 5 Oct 2010 17:11:16 +0000 (17:11 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 5 Oct 2010 17:11:16 +0000 (17:11 +0000)
mod/quiz/lib.php

index 825fe24..38f799a 100644 (file)
@@ -895,7 +895,7 @@ function quiz_get_recent_mod_activity(&$activities, &$index, $timestart,
             $tmpactivity->content->maxgrade  = null;
         }
 
-        $tmpactivity->user->id   = $attempt->id;
+        $tmpactivity->user->id        = $attempt->userid;
         $tmpactivity->user->firstname = $attempt->firstname;
         $tmpactivity->user->lastname = $attempt->lastname;
         $tmpactivity->user->fullname = fullname($attempt, $viewfullnames);