Code Duplication    Length = 4-4 lines in 2 locations

category.php 1 location

@@ 30-33 (lines=4) @@
27
$allowed_cats = $gperm_handler->getItemIds("lexikon_view", $groups, $module_id);
28
$catids = implode(',', $allowed_cats);
29
$catperms = " AND categoryID IN ($catids) ";
30
if (!$gperm_handler->checkRight('lexikon_view', $categoryID, $groups, $xoopsModule->getVar('mid'))) {
31
    redirect_header('index.php', 3, _NOPERM);
32
    exit();
33
}
34
// If there's no entries yet in the system...
35
$publishedwords = lx_countWords();
36
if ( $publishedwords == 0 ) {

entry.php 1 location

@@ 90-93 (lines=4) @@
87
88
while (list( $entryID, $categoryID, $term, $init, $definition, $ref, $url, $uid, $submit, $datesub, $counter, $html, $smiley, $xcodes, $breaks, $block, $offline) = $xoopsDB->fetchRow($result)) {
89
    $catID = intval($categoryID);
90
    if (!$gperm_handler->checkRight('lexikon_view', intval($categoryID), $groups, $module_id)) {
91
        redirect_header('index.php', 3, _NOPERM);
92
        exit();
93
    }
94
95
    $thisterm = array();
96
    $xoopsModule = XoopsModule::getByDirname("lexikon");