Code Duplication    Length = 4-4 lines in 2 locations

admin/status.php 2 locations

@@ 130-133 (lines=4) @@
127
128
        include_once "admin_footer.php";
129
    } else {
130
        if($_POST['desc'] == ''){  // If no description supplied
131
            $message = _AM_XHELP_MESSAGE_NO_DESC;
132
            redirect_header(XHELP_ADMIN_URL."/status.php?op=manageStatus", 3, $message);
133
        }
134
135
        $status->setVar('description', $_POST['desc']);
136
        $status->setVar('state', $_POST['state']);
@@ 156-159 (lines=4) @@
153
    }
154
155
    if(isset($_POST['newStatus'])){
156
        if($_POST['desc'] == ''){  // If no description supplied
157
            $message = _AM_XHELP_MESSAGE_NO_DESC;
158
            redirect_header(XHELP_ADMIN_URL."/status.php?op=manageStatus", 3, $message);
159
        }
160
        $newStatus =& $hStatus->create();
161
162
        $newStatus->setVar('state', intval($_POST['state']));