Code Duplication    Length = 1-1 lines in 2 locations

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

@@ 2541-2541 (lines=1) @@
2538
                                if (!empty($max_score)) {
2539
                                    $lp_partial_total += $score/$max_score;
2540
                                }
2541
                                if ($debug) echo '<b>$lp_partial_total, $score, $max_score '.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />';
2542
                            } else {
2543
                                // Case of a TOOL_QUIZ element
2544
                                $item_id = $row_max_score['iid'];
@@ 2597-2597 (lines=1) @@
2594
                                    if (!empty($max_score) && floatval($max_score) > 0) {
2595
                                        $lp_partial_total += $score/$max_score;
2596
                                    }
2597
                                    if ($debug) echo '$lp_partial_total, $score, $max_score <b>'.$lp_partial_total.' '.$score.' '.$max_score.'</b><br />';
2598
                                }
2599
                            }
2600