summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-10 10:00:50 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-10 10:00:50 +0000
commit571013af8cac7f8c47bb8028495be2e0393d5150 (patch)
tree2fcebb5e8e6ba9fd50cbd13cdcc059d5c680b296 /modules/user/user.module
parent476b03195e920e26556f2b3c902bf6b17032fcdd (diff)
downloadbrdo-571013af8cac7f8c47bb8028495be2e0393d5150.tar.gz
brdo-571013af8cac7f8c47bb8028495be2e0393d5150.tar.bz2
- Patch #142619 by erdemkose: fixed E_ALL warnings.
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']);
}