summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 582ac0e5b..d4ddc76e7 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1559,7 +1559,7 @@ function user_edit($category = 'account') {
$edit = $op ? $_POST : (array)$account;
if (arg(2) == 'delete') {
- if ($edit['confirm']) {
+ if (!empty($edit['confirm'])) {
user_delete($edit, $account->uid);
drupal_goto('admin/user/user');
}
@@ -1568,7 +1568,8 @@ function user_edit($category = 'account') {
}
}
else if ($op == t('Delete')) {
- if ($_REQUEST['destination']) {
+ $destination = '';
+ if (isset($_REQUEST['destination'])) {
$destination = drupal_get_destination();
unset($_REQUEST['destination']);
}