Code Duplication    Length = 3-3 lines in 3 locations

admin/fields.php 3 locations

@@ 435-437 (lines=3) @@
432
function deleteField()
433
{
434
    global $_eventsrv ;
435
    if (!isset( $_REQUEST['id'])) {
436
        redirect_header(xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=> 'manageDepartments'), false), 3, _AM_XHELP_MESSAGE_NO_FIELD);
437
    }
438
439
    $id = intval($_REQUEST['id']);
440
@@ 469-471 (lines=3) @@
466
    $session  =& Session::singleton();
467
    $regex_array =& _getRegexArray();
468
469
    if (!isset( $_REQUEST['id'])) {
470
        redirect_header(xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=> 'manageDepartments'), false), 3, _AM_XHELP_MESSAGE_NO_FIELD);
471
    }
472
473
    $fld_id = intval($_REQUEST['id']);
474
    $hField =& xhelpGetHandler('ticketField');
@@ 475-477 (lines=3) @@
472
473
    $fld_id = intval($_REQUEST['id']);
474
    $hField =& xhelpGetHandler('ticketField');
475
    if (! $field =& $hField->get($fld_id)) {
476
        redirect_header(xhelpMakeURI(XHELP_ADMIN_URL.'/fields.php', array('op'=> 'manageDepartments'), false), 3, _AM_XHELP_MESSAGE_NO_FIELD);
477
    }
478
479
    if (!isset($_POST ['editField'])) {
480
        //Get Custom Field From session (if exists)