Code Duplication    Length = 5-5 lines in 2 locations

admin/notifications.php 1 location

@@ 377-381 (lines=5) @@
374
                $message = _AM_XHELP_MESSAGE_FILE_UPDATED;
375
                $fileSize = filesize($dir.$myFileName);
376
                fclose($handle);
377
                if($returnPage){
378
                    header("Location: ".XHELP_ADMIN_URL."/$returnPage");
379
                } else {
380
                    header("Location: ".XHELP_ADMIN_URL."/notifications.php");
381
                }
382
            } else {
383
                $message = _AM_XHELP_MESSAGE_FILE_UPDATED_ERROR;
384
                $fileSize = filesize($dir.$myFileName);

admin/staff.php 1 location

@@ 183-187 (lines=5) @@
180
    $_xhelpSession->del("xhelp_mainDepts");
181
    $_xhelpSession->del("xhelp_return_op");
182
183
    if(!$returnPage){
184
        header("Location: ".XHELP_ADMIN_URL."/staff.php?op=manageStaff");
185
    } else {
186
        header("Location: ".XHELP_ADMIN_URL."/$returnPage");
187
    }
188
    exit();
189
}
190