Code Duplication    Length = 3-3 lines in 2 locations

singlelink.php 1 location

@@ 37-39 (lines=3) @@
34
        . '))';
35
list($count) = $xoopsDB->fetchRow($xoopsDB->query($sql2));
36
37
if (0 == $count && false === WflinksUtility::checkGroups($cid = 0)) {
38
    redirect_header('index.php', 1, _MD_WFL_MUSTREGFIRST);
39
}
40
41
$sql      = 'SELECT * FROM ' . $xoopsDB->prefix('wflinks_links') . ' WHERE lid=' . $lid . '
42
        AND (published > 0 AND published <= ' . time() . ')

visit.php 1 location

@@ 41-43 (lines=3) @@
38
        . '))';
39
list($count) = $xoopsDB->fetchRow($xoopsDB->query($sql2));
40
41
if (0 == $count && false === WflinksUtility::checkGroups($cid)) {
42
    redirect_header('index.php', 1, _MD_WFL_MUSTREGFIRST);
43
}
44
45
if (0 == $agreed && $xoopsModuleConfig['showlinkdisclaimer']) {
46
    $GLOBALS['xoopsOption']['template_main'] = 'wflinks_disclaimer.tpl';