Code Duplication    Length = 5-5 lines in 2 locations

admin/index.php 2 locations

@@ 1406-1410 (lines=5) @@
1403
        }
1404
    }
1405
1406
    if (isset($_POST['groups_news_can_view'])) {
1407
        foreach ($_POST['groups_news_can_view'] as $onegroup_id) {
1408
            $gperm_handler->addRight('news_view', $xt->topic_id(), $onegroup_id, $xoopsModule->getVar('mid'));
1409
        }
1410
    }
1411
1412
    news_updateCache();
1413
    redirect_header('index.php?op=topicsmanager', 1, _AM_DBUPDATED);
@@ 1519-1523 (lines=5) @@
1516
            }
1517
        }
1518
1519
        if (isset($_POST['groups_news_can_view'])) {
1520
            foreach ($_POST['groups_news_can_view'] as $onegroup_id) {
1521
                $gperm_handler->addRight('news_view', $xt->topic_id(), $onegroup_id, $xoopsModule->getVar('mid'));
1522
            }
1523
        }
1524
        news_updateCache();
1525
1526
        $notification_handler = xoops_getHandler('notification');