Code Duplication    Length = 6-6 lines in 3 locations

admin/faq.php 2 locations

@@ 348-353 (lines=6) @@
345
346
        $faqid    = isset($_GET['faqid']) ? $_GET['faqid'] : -1;
347
        $answerid = isset($_GET['answerid']) ? $_GET['answerid'] : -1;
348
        if ($faqid == -1) {
349
            $totalcategories = $categoryHandler->getCategoriesCount(-1);
350
            if ($totalcategories == 0) {
351
                redirect_header('category.php?op=mod', 3, _AM_SF_NEED_CATEGORY_FAQ);
352
            }
353
        }
354
355
        xoops_cp_header();
356
        include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
@@ 366-371 (lines=6) @@
363
        global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts;
364
        $faqid    = isset($_GET['faqid']) ? $_GET['faqid'] : -1;
365
        $answerid = isset($_GET['answerid']) ? $_GET['answerid'] : -1;
366
        if ($faqid == -1) {
367
            $totalcategories = $categoryHandler->getCategoriesCount(-1);
368
            if ($totalcategories == 0) {
369
                redirect_header('category.php?op=mod', 3, _AM_SF_NEED_CATEGORY_FAQ);
370
            }
371
        }
372
373
        $indexAdmin = new ModuleAdmin();
374
        xoops_cp_header();

admin/question.php 1 location

@@ 176-181 (lines=6) @@
173
        global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModuleConfig, $xoopsModule, $modify, $myts;
174
        $faqid = isset($_GET['faqid']) ? $_GET['faqid'] : -1;
175
176
        if ($faqid == -1) {
177
            $totalcategories = $categoryHandler->getCategoriesCount(-1);
178
            if ($totalcategories == 0) {
179
                redirect_header('category.php?op=mod', 3, _AM_SF_NEED_CATEGORY_QUESTION);
180
            }
181
        }
182
183
        $indexAdmin = new ModuleAdmin();
184
        xoops_cp_header();