Code Duplication    Length = 1-1 lines in 2 locations

main/inc/lib/tracking.lib.php 2 locations

@@ 2452-2452 (lines=1) @@
2449
                                if (!empty($max_score)) {
2450
                                    $lp_partial_total += $score/$max_score;
2451
                                }
2452
                                if ($debug) echo '<b>$lp_partial_total, $score, $max_score '.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />';
2453
                            } else {
2454
                                // Case of a TOOL_QUIZ element
2455
                                $item_id = $row_max_score['iid'];
@@ 2508-2508 (lines=1) @@
2505
                                    if (!empty($max_score) && floatval($max_score) > 0) {
2506
                                        $lp_partial_total += $score/$max_score;
2507
                                    }
2508
                                    if ($debug) echo '$lp_partial_total, $score, $max_score <b>'.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />';
2509
                                }
2510
                            }
2511