瀏覽代碼

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

Julian Prud'homme 17 年之前
父節點
當前提交
3d90f317bc
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;
 	}