Code Duplication    Length = 7-7 lines in 2 locations

index.php 2 locations

@@ 401-407 (lines=7) @@
398
    echo '</tr>';
399
    while (list($res_id, $quiz_id, $uid, $score, $timestamp, $comment, $uname, $name) = $xoopsDB->fetchRow($result)) {
400
        echo '<tr>';
401
        if ($xoopsUser) {
402
            echo "<td class='even'>" . $uname;
403
            if (!empty($name)) {
404
                echo ' (' . $name . ')';
405
            }
406
            echo '</td>';
407
        }
408
        echo "<td class='even' align='center'>$score</td>";
409
        echo "<td class='even' align='center'>$timestamp</td>";
410
        if ($isModAdmin) {
@@ 491-497 (lines=7) @@
488
    list($res_id, $quiz_id, $uid, $score, $start_time, $end_time, $timestamp, $host, $ip, $comment, $uname, $name)
489
        = $xoopsDB->fetchRow($result)) {
490
        echo '<tr>';
491
        if ($xoopsUser) {
492
            echo "<td nowrap class='even'>" . $uname;
493
            if (!empty($name)) {
494
                echo ' (' . $name . ')';
495
            }
496
            echo '</td>';
497
        }
498
        echo "<td class='even' align='center'>$score</td>";
499
        echo "<td class='even' align='center'>$start_time</td>";
500
        echo "<td class='even' align='center'>$end_time</td>";