Code Duplication    Length = 5-5 lines in 2 locations

admin/index.php 2 locations

@@ 1321-1325 (lines=5) @@
1318
        }
1319
    }
1320
1321
    if (isset($_POST['groups_news_can_view'])) {
1322
        foreach ($_POST['groups_news_can_view'] as $onegroup_id) {
1323
            $gpermHandler->addRight('news_view', $xt->topic_id(), $onegroup_id, $xoopsModule->getVar('mid'));
1324
        }
1325
    }
1326
1327
    NewsUtility::updateCache();
1328
    redirect_header('index.php?op=topicsmanager', 1, _AM_DBUPDATED);
@@ 1434-1438 (lines=5) @@
1431
            }
1432
        }
1433
1434
        if (isset($_POST['groups_news_can_view'])) {
1435
            foreach ($_POST['groups_news_can_view'] as $onegroup_id) {
1436
                $gpermHandler->addRight('news_view', $xt->topic_id(), $onegroup_id, $xoopsModule->getVar('mid'));
1437
            }
1438
        }
1439
        NewsUtility::updateCache();
1440
1441
        $notificationHandler = xoops_getHandler('notification');