Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 356-362 (lines=7) @@
353
        $bid = 0;
354
        $block_key = null;
355
        while ($row = $xoops->db()->fetchArray($result)) {
356
            if ($row['dirname'] != $dirname) {
357
                $dirname = $row['dirname'];
358
                $modversion = array();
359
                if (!@include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/xoops_version.php') {
360
                    continue;
361
                }
362
            }
363
            if (empty($modversion['blocks']) && $dirname != 'system') {
364
                continue;
365
            }
@@ 418-424 (lines=7) @@
415
        $bid = 0;
416
        $block_key = null;
417
        while ($row = $xoops->db()->fetchArray($result)) {
418
            if ($row['dirname'] != $dirname) {
419
                $dirname = $row['dirname'];
420
                $modversion = array();
421
                if (!@include XOOPS_ROOT_PATH . '/modules/' . $dirname . '/xoops_version.php') {
422
                    continue;
423
                }
424
            }
425
            if (empty($modversion['blocks']) && $dirname != 'system') {
426
                continue;
427
            }