Fixes certification validation. Takes the score not the percentage.

See BT#9403
1.9.x
Julio Montoya 11 years ago
parent 05defde210
commit 1919394273
  1. 7
      main/gradebook/lib/be/category.class.php

@ -704,9 +704,12 @@ class Category implements GradebookItem
{
$score = $this->calc_score($user_id, $this->course_code);
if (isset($score)) {
if (isset($score) && isset($score[0])) {
// Get a percentage score to compare to minimum certificate score
$certification_score = $score[0] / $score[1] * 100;
//$certification_score = $score[0] / $score[1] * 100;
// Get real score not a percentage.
$certification_score = $score[0];
if ($certification_score >= $this->certificate_min_score) {
return true;

Loading…
Cancel
Save