Skip to content

Commit

Permalink
Gradebook: Fix average result values BT#17899
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Dec 10, 2020
1 parent df78efd commit 545cb6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/gradebook/lib/be/exerciselink.class.php
Expand Up @@ -212,7 +212,8 @@ public function calc_score($stud_id = null, $type = null)

break;
case 'average':
$count = count($this->getStudentList());
$count = count($link->getUserScoreList());
//$count = count($this->getStudentList());
if (empty($count)) {
return [0, $weight];
}
Expand Down

0 comments on commit 545cb6b

Please sign in to comment.