Code Duplication    Length = 7-7 lines in 2 locations

admin/categories.php 2 locations

@@ 207-213 (lines=7) @@
204
        $dtypes = '';
205
        $count  = 1;
206
        while (list($dtypeid, $cid, $dtypetitle, $section, $dseq, $picture, $ftypename, $ftypeid, $defaultyn, $activeyn, $options, $dcustom) = $xoopsDB->fetchRow($result)) {
207
            if ($defaultyn == '1') {
208
                $default = _MD_YES;
209
                $checked = ' checked';
210
            } else {
211
                $default = _MD_NO;
212
                $checked = '';
213
            }
214
            if ($activeyn == '1') {
215
                $default       = _MD_YES;
216
                $activechecked = ' checked';
@@ 376-382 (lines=7) @@
373
    $numrows = $xoopsDB->getRowsNum($result);
374
    if ($numrows > 0) {
375
        while (list($dtypeid, $dtypetitle, $section, $dseq, $picture, $ftypename, $ftypeid, $defaultyn, $activeyn, $options, $dcustom) = $xoopsDB->fetchRow($result)) {
376
            if ($defaultyn == '1') {
377
                $default = _MD_YES;
378
                $checked = ' checked';
379
            } else {
380
                $default = _MD_NO;
381
                $checked = '';
382
            }
383
            if ($activeyn == '1') {
384
                $default       = _MD_YES;
385
                $activechecked = ' checked';