Code Duplication    Length = 6-7 lines in 2 locations

index.php 1 location

@@ 152-158 (lines=7) @@
149
            $random['definition'] = $myts->displayTarea(xoops_substr($myrow['definition'], 0, $rndlength - 1), $myrow['html'], $myrow['smiley'], $myrow['xcodes'], 1, $myrow['breaks']);
150
        }
151
152
        if ($xoopsModuleConfig['multicats'] == 1) {
153
            $random['categoryID'] = $myrow['categoryID'];
154
155
            $resultY = $xoopsDB->query('SELECT categoryID, name FROM ' . $xoopsDB->prefix('lxcategories') . ' WHERE categoryID = ' . $myrow['categoryID'] . ' ');
156
            list($categoryID, $name) = $xoopsDB->fetchRow($resultY);
157
            $random['categoryname'] = $myts->displayTarea($name);
158
        }
159
    }
160
    $microlinks = LexikonUtility::getServiceLinks($random);
161
    $xoopsTpl->assign('random', $random);

syndication.php 1 location

@@ 68-73 (lines=6) @@
65
            $syndication['definition'] = $myts->displayTarea(xoops_substr($myrow['definition'], 0, $xoopsModuleConfig['rndlength'] - 3), 1, 1, 1, 1, 1);
66
            // note: if the definitions are too long try : $xoopsModuleConfig['rndlength'] -20 ) and decrease font-size:x-small below ...
67
        }
68
        if ($xoopsModuleConfig['multicats'] == 1) {
69
            $syndication['catID'] = $myrow['categoryID'];
70
            $resultY              = $xoopsDB->query('SELECT categoryID, name FROM ' . $xoopsDB->prefix('lxcategories') . ' WHERE categoryID = ' . $myrow['categoryID'] . ' ');
71
            list($categoryID, $name) = $xoopsDB->fetchRow($resultY);
72
            $syndication['categoryname'] = $myts->displayTarea($name);
73
        }
74
    }
75
    $tpl->assign('syndication', $syndication);
76
}