Code Duplication    Length = 4-4 lines in 3 locations

ro_regonlinehandler.php 3 locations

@@ 1836-1839 (lines=4) @@
1833
}
1834
1835
if (isset($_POST['cancel']) || isset($_POST['cancel_x'])) {
1836
    if (!empty($_POST['eventurl'])) {
1837
        $url = Request::getString('eventurl', '');
1838
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1839
    }
1840
    if (!empty($_POST['url'])) {
1841
        $url = Request::getString('url', '');
1842
        redirect_header($url, 1, _APCAL_RO_CANCEL);
@@ 1840-1843 (lines=4) @@
1837
        $url = Request::getString('eventurl', '');
1838
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1839
    }
1840
    if (!empty($_POST['url'])) {
1841
        $url = Request::getString('url', '');
1842
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1843
    }
1844
}
1845
if (isset($_POST['goback']) || isset($_POST['goback_x'])) {
1846
    if (!empty($_POST['eventurl'])) {
@@ 1846-1849 (lines=4) @@
1843
    }
1844
}
1845
if (isset($_POST['goback']) || isset($_POST['goback_x'])) {
1846
    if (!empty($_POST['eventurl'])) {
1847
        $url = Request::getString('eventurl', '');
1848
        redirect_header($url, 0, _APCAL_RO_BACK);
1849
    }
1850
}
1851
1852
if (isset($_POST['ro_notify_all']) || isset($_POST['ro_notify_all_x'])) {