Code Duplication    Length = 4-4 lines in 2 locations

admin/myblocksadmin.php 1 location

@@ 337-340 (lines=4) @@
334
    }
335
336
    $form = new MyXoopsGroupPermForm(_AM_APCAL_ADGS, 1, 'block_read', '');
337
    if ($target_mid > 1) {
338
        $form->addAppendix('module_admin', $target_mid, $target_mname . ' ' . _AM_APCAL_ACTIVERIGHTS);
339
        $form->addAppendix('module_read', $target_mid, $target_mname . ' ' . _AM_APCAL_ACCESSRIGHTS);
340
    }
341
    foreach ($item_list as $item_id => $item_name) {
342
        $form->addItem($item_id, $item_name);
343
    }

admin/myblocksadmin2.php 1 location

@@ 340-343 (lines=4) @@
337
    }
338
339
    $form = new MyXoopsGroupPermForm(_AM_APCAL_ADGS, 1, 'block_read', '');
340
    if ($target_mid > 1) {
341
        $form->addAppendix('module_admin', $target_mid, $target_mname . ' ' . _AM_APCAL_ACTIVERIGHTS);
342
        $form->addAppendix('module_read', $target_mid, $target_mname . ' ' . _AM_APCAL_ACCESSRIGHTS);
343
    }
344
    foreach ($item_list as $item_id => $item_name) {
345
        $form->addItem($item_id, $item_name);
346
    }