diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-06-23 07:06:17 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-06-23 07:06:17 +0000 |
commit | 899123af50772879f5bc3d9736c79ef46f78cdc4 (patch) | |
tree | b57513cb4a628b3509aba265c078c5332967fa60 /modules/user.module | |
parent | bbff6a9b325b289edd3a7e8d7a05502ad268904a (diff) | |
download | brdo-899123af50772879f5bc3d9736c79ef46f78cdc4.tar.gz brdo-899123af50772879f5bc3d9736c79ef46f78cdc4.tar.bz2 |
#70302 by adixon and killes, avoid deleting uid 0 on duplicate deletions.
Diffstat (limited to 'modules/user.module')
-rw-r--r-- | modules/user.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/user.module b/modules/user.module index 76513f325..02ee1bc66 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1400,6 +1400,10 @@ function user_edit($category = 'account') { global $user; $account = user_load(array('uid' => arg(1))); + if ($account === FALSE) { + drupal_set_message(t('The account does not exist or has already been deleted.')); + drupal_goto('admin/user'); + } $edit = $_POST['op'] ? $_POST['edit'] : (array)$account; if (arg(2) == 'delete') { |