Fix for a bug in deleting an account. Code was checking for a parameter that wasn't applicable to deleting an account, and wouldn't allow it to happen as a result.

This commit is contained in:
jacob 2012-02-09 19:25:08 +00:00
parent 5c5c3e55ec
commit e746f5faab

View File

@ -48,7 +48,7 @@ if($eid != $_SESSION['users_id']) {
$u = user_load($eid);
/* Validate the type */
if($_GET['action'] != '') {
if($_GET['action'] != '' && $_GET['action'] != 'delete') {
$action_type = $_GET['type'];
if(!in_array($action_type, $user_types)) {
echo "ERROR: not an allowed type.";