Code Duplication    Length = 4-4 lines in 3 locations

ro_regonlinehandler.php 3 locations

@@ 1740-1743 (lines=4) @@
1737
}
1738
1739
if (isset($_POST['cancel']) || isset($_POST['cancel_x'])) {
1740
    if (!empty($_POST['eventurl'])) {
1741
        $url = Request::getString('eventurl', '');
1742
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1743
    }
1744
    if (!empty($_POST['url'])) {
1745
        $url = Request::getString('url', '');
1746
        redirect_header($url, 1, _APCAL_RO_CANCEL);
@@ 1744-1747 (lines=4) @@
1741
        $url = Request::getString('eventurl', '');
1742
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1743
    }
1744
    if (!empty($_POST['url'])) {
1745
        $url = Request::getString('url', '');
1746
        redirect_header($url, 1, _APCAL_RO_CANCEL);
1747
    }
1748
}
1749
if (isset($_POST['goback']) || isset($_POST['goback_x'])) {
1750
    if (!empty($_POST['eventurl'])) {
@@ 1750-1753 (lines=4) @@
1747
    }
1748
}
1749
if (isset($_POST['goback']) || isset($_POST['goback_x'])) {
1750
    if (!empty($_POST['eventurl'])) {
1751
        $url = Request::getString('eventurl', '');
1752
        redirect_header($url, 0, _APCAL_RO_BACK);
1753
    }
1754
}
1755
1756
if (isset($_POST['ro_notify_all']) || isset($_POST['ro_notify_all_x'])) {