Code Duplication    Length = 4-4 lines in 2 locations

include/blocksadmin.inc.php 2 locations

@@ 484-487 (lines=4) @@
481
    $cblock->setVar('content', @$_POST['bcontent']);
482
    $cblock->setVar('c_type', @$_POST['bctype']);
483
    $cblock->setVar('bcachetime', $_POST['bcachetime']);
484
    if (isset($options) && (count($options) > 0)) {
485
        $options = implode('|', $options);
486
        $cblock->setVar('options', $options);
487
    }
488
    $cblock->setVar('bid', 0);
489
    $cblock->setVar('block_type', $block_type === 'C' ? 'C' : 'D');
490
    $cblock->setVar('func_num', 255);
@@ 582-585 (lines=4) @@
579
        $myblock->setVar('c_type', $bctype);
580
    }
581
    $myblock->setVar('bcachetime', $bcachetime);
582
    if (isset($options) && (count($options) > 0)) {
583
        $options = implode('|', $options);
584
        $myblock->setVar('options', $options);
585
    }
586
    if ($myblock->getVar('block_type') === 'C') {
587
        switch ($myblock->getVar('c_type')) {
588
            case 'H':