diff options
| author | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2021-11-17 10:20:45 +0000 |
|---|---|---|
| committer | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2021-11-17 10:20:45 +0000 |
| commit | 63cf1bab895eb518e47ce35c8ccd14c285a900f0 (patch) | |
| tree | 5dc00f8822f7284a1725c9f23a2b8d293568b74e /app/controllers/course/courseware.php | |
| parent | 7e7295f7daa993492ee6ca2deda17b35f2e317f4 (diff) | |
Steigerung der Performance großer Coursewares.
Closes #362.
Diffstat (limited to 'app/controllers/course/courseware.php')
| -rwxr-xr-x | app/controllers/course/courseware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/course/courseware.php b/app/controllers/course/courseware.php index 834764f..b22ffb7 100755 --- a/app/controllers/course/courseware.php +++ b/app/controllers/course/courseware.php @@ -170,7 +170,7 @@ class Course_CoursewareController extends AuthenticatedController private function getProgress(Course $course, StructuralElement $element, bool $course_progress = false, array $cw_user_progresses, array $course_member_ids): array { - $descendants = $element->findDescendants(); + $descendants = $element->findDescendants(\User::findCurrent()); $count = count($descendants); $progress = 0; $own_progress = 0; |
