Code Duplication    Length = 7-7 lines in 2 locations

index.php 2 locations

@@ 362-368 (lines=7) @@
359
    echo '</tr>';
360
    while (list($res_id, $quiz_id, $uid, $score, $timestamp, $comment, $uname, $name) = $xoopsDB->fetchRow($result)) {
361
        echo '<tr>';
362
        if ($xoopsUser) {
363
            echo "<td class='even'>" . $uname;
364
            if (!empty($name)) {
365
                echo ' (' . $name . ')';
366
            }
367
            echo '</td>';
368
        }
369
        echo "<td class='even' align='center'>$score</td>";
370
        echo "<td class='even' align='center'>$timestamp</td>";
371
        if ($isModAdmin) {
@@ 445-451 (lines=7) @@
442
    echo '</tr>';
443
    while (list($res_id, $quiz_id, $uid, $score, $start_time, $end_time, $timestamp, $host, $ip, $comment, $uname, $name) = $xoopsDB->fetchRow($result)) {
444
        echo '<tr>';
445
        if ($xoopsUser) {
446
            echo "<td nowrap class='even'>" . $uname;
447
            if (!empty($name)) {
448
                echo ' (' . $name . ')';
449
            }
450
            echo '</td>';
451
        }
452
        echo "<td class='even' align='center'>$score</td>";
453
        echo "<td class='even' align='center'>$start_time</td>";
454
        echo "<td class='even' align='center'>$end_time</td>";