Code Duplication    Length = 7-7 lines in 2 locations

htdocs/modules/publisher/admin/item.php 1 location

@@ 32-38 (lines=7) @@
29
$op = ($itemid > 0 || isset($_POST['editor'])) ? 'mod' : '';
30
$op = Request::getCmd('op', $op);
31
32
if (isset($_POST['additem'])) {
33
    $op = 'additem';
34
} else {
35
    if (isset($_POST['del'])) {
36
        $op = 'del';
37
    }
38
}
39
40
// Where shall we start ?
41
$submittedstartitem = Request::getInt('submittedstartitem');

htdocs/modules/publisher/submit.php 1 location

@@ 77-83 (lines=7) @@
74
}
75
76
$op = '';
77
if (isset($_POST['additem'])) {
78
    $op = 'post';
79
} elseif (isset($_POST['preview'])) {
80
    $op = 'preview';
81
} else {
82
    $op = 'add';
83
}
84
85
if (isset($_REQUEST['op']) && $_REQUEST['op'] === 'del') {
86
    $op = 'del';