Code Duplication    Length = 5-5 lines in 2 locations

addTicket.php 1 location

@@ 556-560 (lines=5) @@
553
    foreach($myConfigs as $myConf){
554
        $xoopsConfigUser[$myConf->getVar('conf_name')] = $myConf->getVar('conf_value');
555
    }
556
    if ($xoopsConfigUser['allow_register'] == 0) {    // Use to doublecheck that anonymous users are allowed to register
557
        header("Location: ".XHELP_BASE_URL."/error.php");
558
    } else {
559
        header("Location: ".XHELP_BASE_URL."/anon_addTicket.php");
560
    }
561
    exit();
562
}
563

index.php 1 location

@@ 189-193 (lines=5) @@
186
            $xoopsConfigUser[$myConf->getVar('conf_name')] = $myConf->getVar('conf_value');
187
        }
188
189
        if ($xoopsConfigUser['allow_register'] == 0) {
190
            header("Location: ".XHELP_BASE_URL."/error.php");
191
        } else {
192
            header("Location: ".XHELP_BASE_URL."/addTicket.php");
193
        }
194
        exit();
195
        break;
196
    default: