Code Duplication    Length = 5-5 lines in 2 locations

advancedsearch.php 1 location

@@ 43-47 (lines=5) @@
40
} else {
41
    $get_cid = '1';
42
}
43
if (isset($_GET['dirid'])) {
44
    $get_dirid = (int)$_GET['dirid'];
45
} elseif (isset($_POST['dirid'])) {
46
    $get_dirid = (int)$_POST['dirid'];
47
}
48
if (isset($_GET['orderby'])) {
49
    $orderby = convertOrderByIn($_GET['orderby']);
50
} else {

submit.php 1 location

@@ 29-33 (lines=5) @@
26
require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
27
28
$moddir = $xoopsModule->getVar('dirname');
29
if (isset($_POST['dirid'])) {
30
    $dirid = (int)$_POST['dirid'];
31
} elseif (isset($_GET['dirid'])) {
32
    $dirid = (int)$_GET['dirid'];
33
}
34
35
$eh = new ErrorHandler; //ErrorHandler object
36