Browse Source

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

Julian Prud'homme 17 năm trước cách đây
mục cha
commit
3d90f317bc
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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;
 	}