[svn r21131] Added comment about default max score election.

skala
Yannick Warnier 16 years ago
parent ae38890216
commit 2977a114c1
  1. 1
      main/inc/lib/tracking.lib.php

@ -421,6 +421,7 @@ class Tracking {
if ($num_rows_max_score==1) {
while ($row_max_score=Database::fetch_array($res_max_score)) {
if ($row_max_score['max_score']==0) {
//when there's no max score, we assume 100 as the max score, as the SCORM 1.2 says that the value should always be between 0 and 100.
$lp_scorm_result_score_total+=($row_max_score['score']/100);
} else {
$lp_scorm_result_score_total+=($row_max_score['score']/$row_max_score['max_score']);

Loading…
Cancel
Save