|
@@ 2581-2581 (lines=1) @@
|
| 2578 |
|
if (!empty($max_score)) { |
| 2579 |
|
$lp_partial_total += $score/$max_score; |
| 2580 |
|
} |
| 2581 |
|
if ($debug) echo '<b>$lp_partial_total, $score, $max_score '.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2582 |
|
} else { |
| 2583 |
|
// Case of a TOOL_QUIZ element |
| 2584 |
|
$item_id = $row_max_score['iid']; |
|
@@ 2637-2637 (lines=1) @@
|
| 2634 |
|
if (!empty($max_score) && floatval($max_score) > 0) { |
| 2635 |
|
$lp_partial_total += $score/$max_score; |
| 2636 |
|
} |
| 2637 |
|
if ($debug) echo '$lp_partial_total, $score, $max_score <b>'.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2638 |
|
} |
| 2639 |
|
} |
| 2640 |
|
|