Code Duplication    Length = 5-5 lines in 2 locations

admin/categories.php 2 locations

@@ 478-482 (lines=5) @@
475
        } else {
476
            $p_active = '0';
477
        }
478
        if (isset($_POST['options'])) {
479
            $p_options = $myts->makeTareaData4Save($_POST['options']);
480
        } else {
481
            $p_options = '';
482
        }
483
        $p_fieldtype = $_POST['typeid'];
484
        $p_seq       = $myts->makeTboxData4Save($_POST['seq']);
485
@@ 560-564 (lines=5) @@
557
    } else {
558
        $p_custom = '0';
559
    }
560
    if (isset($_POST['options'])) {
561
        $p_options = $myts->makeTareaData4Save($_POST['options']);
562
    } else {
563
        $p_options = '';
564
    }
565
    $p_fieldtype = (int)$_POST['typeid'];
566
    if ($p_fieldtype == '') {
567
        redirect_header("categories.php?op=edit&catid=$p_catid", 2, _MD_NOFIELDTYPE_SELECTED);