|
@@ 2571-2571 (lines=1) @@
|
| 2568 |
|
if (!empty($max_score)) { |
| 2569 |
|
$lp_partial_total += $score/$max_score; |
| 2570 |
|
} |
| 2571 |
|
if ($debug) echo '<b>$lp_partial_total, $score, $max_score '.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2572 |
|
} else { |
| 2573 |
|
// Case of a TOOL_QUIZ element |
| 2574 |
|
$item_id = $row_max_score['iid']; |
|
@@ 2627-2627 (lines=1) @@
|
| 2624 |
|
if (!empty($max_score) && floatval($max_score) > 0) { |
| 2625 |
|
$lp_partial_total += $score/$max_score; |
| 2626 |
|
} |
| 2627 |
|
if ($debug) echo '$lp_partial_total, $score, $max_score <b>'.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2628 |
|
} |
| 2629 |
|
} |
| 2630 |
|
|