Code Duplication    Length = 7-7 lines in 2 locations

upgrade/cnt-2.2.x-to-2.3.0/index.php 2 locations

@@ 331-337 (lines=7) @@
328
        $bid       = 0;
329
        $block_key = null;
330
        while ($row = $xoopsDB->fetchArray($result)) {
331
            if ($row['dirname'] != $dirname) {
332
                $dirname    = $row['dirname'];
333
                $modversion = array();
334
                if (!@include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/xoops_version.php') {
335
                    continue;
336
                }
337
            }
338
            if (empty($modversion['blocks']) && $dirname !== 'system') {
339
                continue;
340
            }
@@ 365-371 (lines=7) @@
362
        $bid       = 0;
363
        $block_key = null;
364
        while ($row = $xoopsDB->fetchArray($result)) {
365
            if ($row['dirname'] != $dirname) {
366
                $dirname    = $row['dirname'];
367
                $modversion = array();
368
                if (!@include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/xoops_version.php') {
369
                    continue;
370
                }
371
            }
372
            if (empty($modversion['blocks']) && $dirname !== 'system') {
373
                continue;
374
            }