Code Duplication    Length = 4-4 lines in 2 locations

admin/fields.php 2 locations

@@ 269-272 (lines=4) @@
266
267
        $values =& _parseValues($_POST['fld_values']);
268
269
        if (!$control = xhelpGetControl($_POST['fld_controltype'])) {
270
            $has_errors = true;
271
            $errors['fld_controltype'][] = _AM_XHELP_VALID_ERR_CONTROLTYPE;
272
        }
273
274
        $fld_needslength = $control['needs_length'];
275
        $fld_needsvalues = $control['needs_values'];
@@ 610-613 (lines=4) @@
607
        $errors = array();
608
        $values =& _parseValues($_POST['fld_values']);
609
610
        if (!$control = xhelpGetControl($_POST['fld_controltype'])) {
611
            $has_errors = true;
612
            $errors['fld_controltype'][] = _AM_XHELP_VALID_ERR_CONTROLTYPE;
613
        }
614
615
        $fld_needslength = $control['needs_length'];
616
        $fld_needsvalues = $control['needs_values'];