Browse Source

[svn r12987] Fix a bug : http://projects.dokeos.com/?do=details&id=1862

Julian Prud'homme 17 years ago
parent
commit
3d90f317bc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main/inc/lib/tracking.lib.php

+ 1 - 2
main/inc/lib/tracking.lib.php

@@ -296,9 +296,8 @@ class Tracking {
 		}
 
 		$totalScore = $lp_scorm_score_total;
-		$totalWeighting = $lp_scorm_weighting_total + 100;
 
-		$pourcentageScore = round(($totalScore * 100) / $totalWeighting);
+		$pourcentageScore = round(($totalScore * 100) / $lp_scorm_weighting_total);
 
 		return $pourcentageScore;
 	}