mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 03:52:16 +02:00
Merge branch 'MDL-67119-master' of git://github.com/aanabit/moodle
This commit is contained in:
commit
535c0277de
@ -122,7 +122,7 @@ class student_enrolments extends \core_analytics\local\analyser\by_course {
|
||||
foreach ($enrolments as $userenrolmentid => $user) {
|
||||
|
||||
if (empty($studentids[$user->id])) {
|
||||
// Not a student.
|
||||
// Not a student or an analysed one.
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -147,6 +147,9 @@ class student_enrolments extends \core_analytics\local\analyser\by_course {
|
||||
unset($user->uetimecreated);
|
||||
unset($user->uetimemodified);
|
||||
|
||||
// This student has been already analysed. We analyse each student once.
|
||||
unset($studentids[$user->id]);
|
||||
|
||||
$samplesdata[$sampleid]['course'] = $course->get_course_data();
|
||||
$samplesdata[$sampleid]['context'] = $course->get_context();
|
||||
$samplesdata[$sampleid]['user'] = $user;
|
||||
|
Loading…
x
Reference in New Issue
Block a user