Code Duplication    Length = 7-7 lines in 2 locations

index.php 2 locations

@@ 391-397 (lines=7) @@
388
    echo "</tr>";
389
    while (list($res_id, $quiz_id, $uid, $score, $timestamp, $comment, $uname, $name) = $xoopsDB->fetchRow($result)) {
390
        echo "<tr>";
391
        if ($xoopsUser) {
392
            echo "<td class='even'>" . $uname;
393
            if (!empty($name)) {
394
                echo " (" . $name . ")";
395
            }
396
            echo "</td>";
397
        }
398
        echo "<td class='even' align='center'>$score</td>";
399
        echo "<td class='even' align='center'>$timestamp</td>";
400
        if ($isModAdmin) {
@@ 477-483 (lines=7) @@
474
    list($res_id, $quiz_id, $uid, $score, $start_time, $end_time, $timestamp, $host, $ip, $comment, $uname, $name)
475
        = $xoopsDB->fetchRow($result)) {
476
        echo "<tr>";
477
        if ($xoopsUser) {
478
            echo "<td nowrap class='even'>" . $uname;
479
            if (!empty($name)) {
480
                echo " (" . $name . ")";
481
            }
482
            echo "</td>";
483
        }
484
        echo "<td class='even' align='center'>$score</td>";
485
        echo "<td class='even' align='center'>$start_time</td>";
486
        echo "<td class='even' align='center'>$end_time</td>";