Code Duplication    Length = 3-8 lines in 2 locations

include/functions.php 1 location

@@ 773-775 (lines=3) @@
770
                              ORDER BY term
771
                              LIMIT $start,$limit");
772
773
    while ($row=$xoopsDB->fetchArray($sql)) {
774
        $xoopsTpl->append('entries', array('id'=>$row['entryID'],'name'=>$row['term'],'date'=>date($xoopsModuleConfig['dateformat'], $row['datesub']),'counter'=>$row['counter']));
775
    }
776
777
    $navstring = '';
778
    $navstring .= "uid=".$uid."&start";

class/Utility.php 1 location

@@ 1095-1102 (lines=8) @@
1092
                              ORDER BY term
1093
                              LIMIT $start,$limit");
1094
1095
    while ($row = $xoopsDB->fetchArray($sql)) {
1096
        $xoopsTpl->append('entries', [
1097
                'id'      => $row['entryID'],
1098
                'name'    => $row['term'],
1099
                'date'    => date($xoopsModuleConfig['dateformat'], $row['datesub']),
1100
                'counter' => $row['counter']
1101
            ]);
1102
    }
1103
1104
    $navstring                = '';
1105
    $navstring                .= 'uid=' . $uid . '&start';