aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/courseware.php
diff options
context:
space:
mode:
authorMarcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>2021-11-17 10:20:45 +0000
committerMarcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de>2021-11-17 10:20:45 +0000
commit63cf1bab895eb518e47ce35c8ccd14c285a900f0 (patch)
tree5dc00f8822f7284a1725c9f23a2b8d293568b74e /app/controllers/course/courseware.php
parent7e7295f7daa993492ee6ca2deda17b35f2e317f4 (diff)
Steigerung der Performance großer Coursewares.
Closes #362.
Diffstat (limited to 'app/controllers/course/courseware.php')
-rwxr-xr-xapp/controllers/course/courseware.php2
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;