Code Duplication    Length = 9-9 lines in 2 locations

submit.php 2 locations

@@ 121-129 (lines=9) @@
118
                    }
119
                }
120
            }
121
        } else {
122
            if (!news_is_admin_group()) {
123
                unset($tmpstory);
124
                redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM);
125
            } else {
126
                $approveprivilege = 1;
127
            }
128
        }
129
    }
130
}
131
132
switch ($op) {
@@ 112-120 (lines=9) @@
109
                    $op = isset($_GET['op']) ? $_GET['op'] : $_POST['post'];
110
                    unset($tmpstory);
111
                    $approveprivilege = 1;
112
                } else {
113
                    unset($tmpstory);
114
                    if (!news_is_admin_group()) {
115
                        redirect_header(XOOPS_URL . '/modules/news/index.php', 3, _NOPERM);
116
                    } else {
117
                        $approveprivilege = 1;
118
                    }
119
                }
120
            }
121
        } else {
122
            if (!news_is_admin_group()) {
123
                unset($tmpstory);