Code Duplication    Length = 5-5 lines in 2 locations

admin/main.php 1 location

@@ 431-435 (lines=5) @@
428
                redirect_header('index.php', 2, _MD_NOVALIDITEM);
429
                exit();
430
            }
431
            if (!empty($_POST['dirid'])) {
432
                $post_dirid = (int)$_POST['dirid'];
433
            } else {
434
                $post_dirid = 0;
435
            }
436
            if (isset($_POST['ini_description'])) {
437
                $p_ini_description = $myts->makeTareaData4Save($_POST['ini_description']);
438
            } else {

edit.php 1 location

@@ 84-88 (lines=5) @@
81
        }
82
        exit();
83
    }
84
    if (!empty($_POST['dirid'])) {
85
        $post_dirid = (int)$_POST['dirid'];
86
    } else {
87
        $post_dirid = 0;
88
    }
89
    if (isset($_POST['itemtitle'])) {
90
        $p_title     = $myts->makeTboxData4Save($_POST['itemtitle']);
91
        $p_ini_title = $myts->makeTboxData4Save($_POST['ini_itemtitle']);