Code Duplication    Length = 1-1 lines in 2 locations

admin/myblocksadmin.php 1 location

@@ 66-66 (lines=1) @@
63
64
// check access right (needs system_admin of BLOCK)
65
$sysperm_handler =& xoops_gethandler('groupperm');
66
if (!$sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) redirect_header( XOOPS_URL.'/user.php' , 1 , _NOPERM ) ;
67
68
// get blocks owned by the module (Imported from xoopsblock.php then modified)
69
//$block_arr =& XoopsBlock::getByModule( $target_mid ) ;

admin/myblocksadmin2.php 1 location

@@ 62-62 (lines=1) @@
59
60
// check access right (needs system_admin of BLOCK)
61
$sysperm_handler =& xoops_gethandler('groupperm');
62
if (!$sysperm_handler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) redirect_header( XOOPS_URL.'/user.php' , 1 , _NOPERM ) ;
63
64
// get blocks owned by the module (Imported from xoopsblock.php then modified)
65
$db =& XoopsDatabaseFactory::getDatabaseConnection();