Code Duplication    Length = 6-7 lines in 2 locations

index.php 1 location

@@ 168-174 (lines=7) @@
165
            $random['definition'] = $myts->displayTarea(xoops_substr($myrow['definition'], 0, $rndlength - 1), $myrow['html'], $myrow['smiley'], $myrow['xcodes'], 1, $myrow['breaks']);
166
        }
167
168
        if ($xoopsModuleConfig['multicats'] == 1) {
169
            $random['categoryID'] = $myrow['categoryID'];
170
171
            $resultY = $xoopsDB->query('SELECT categoryID, name FROM '
172
                                        . $xoopsDB->prefix('lxcategories')
173
                                        . ' WHERE categoryID = '
174
                                        . $myrow['categoryID']
175
                                        . ' ');
176
            list($categoryID, $name) = $xoopsDB->fetchRow($resultY);
177
            $random['categoryname'] = $myts->displayTarea($name);

syndication.php 1 location

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