|
@@ 2501-2501 (lines=1) @@
|
| 2498 |
|
if (!empty($max_score)) { |
| 2499 |
|
$lp_partial_total += $score/$max_score; |
| 2500 |
|
} |
| 2501 |
|
if ($debug) echo '<b>$lp_partial_total, $score, $max_score '.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2502 |
|
} else { |
| 2503 |
|
// Case of a TOOL_QUIZ element |
| 2504 |
|
$item_id = $row_max_score['iid']; |
|
@@ 2557-2557 (lines=1) @@
|
| 2554 |
|
if (!empty($max_score) && floatval($max_score) > 0) { |
| 2555 |
|
$lp_partial_total += $score/$max_score; |
| 2556 |
|
} |
| 2557 |
|
if ($debug) echo '$lp_partial_total, $score, $max_score <b>'.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />'; |
| 2558 |
|
} |
| 2559 |
|
} |
| 2560 |
|
|