Code Duplication    Length = 7-7 lines in 2 locations

htdocs/modules/system/themes/default/default.php 1 location

@@ 286-292 (lines=7) @@
283
            }
284
        }
285
286
        if (is_object($xoopsModule) || !empty($_GET['xoopsorgnews'])) {
287
            if (is_object($xoopsModule) && file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('adminmenu'))) {
288
                include $file;
289
            }
290
291
            return null;
292
        }
293
294
        foreach ($mods as $mod) {
295
            $sadmin = $moduleperm_handler->checkRight('module_admin', $mod->getVar('mid'), $xoopsUser->getGroups());

htdocs/modules/system/themes/transition/transition.php 1 location

@@ 320-326 (lines=7) @@
317
            }
318
        }
319
320
        if (is_object($xoopsModule) || !empty($_GET['xoopsorgnews'])) {
321
            if (is_object($xoopsModule) && file_exists($file = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('adminmenu'))) {
322
                include $file;
323
            }
324
325
            return null;
326
        }
327
328
        foreach ($mods as $mod) {
329
            $sadmin = $moduleperm_handler->checkRight('module_admin', $mod->getVar('mid'), $xoopsUser->getGroups());