Code Duplication    Length = 9-9 lines in 2 locations

submit.php 2 locations

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