From e746f5faaba4e55fe71421bffc1fc6e158419636 Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 9 Feb 2012 19:25:08 +0000 Subject: [PATCH] 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. --- user_activate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_activate.php b/user_activate.php index af878a1..13b41b1 100644 --- a/user_activate.php +++ b/user_activate.php @@ -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.";