diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-02 12:46:21 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-02 12:46:21 +0000 |
commit | 1e04b134f4df85756e509b671ee14e901b65178c (patch) | |
tree | 3b2b7e4fa07a4bfa7afcfef1b846e2111a7fbe1a | |
parent | f0d5a4245b3b39d8976bd7e3c91ef1a72209a315 (diff) | |
download | brdo-1e04b134f4df85756e509b671ee14e901b65178c.tar.gz brdo-1e04b134f4df85756e509b671ee14e901b65178c.tar.bz2 |
#172453 by webchick: proper default value for user roles (radios need an int, not an array)
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 3082ce3a4..5c598bcf5 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2062,7 +2062,7 @@ function user_admin_access_form(&$form_state, $edit, $submit) { $form['status'] = array( '#type' => 'radios', '#title' => t('Access type'), - '#default_value' => isset($edit['status']) ? $edit['status'] : array(), + '#default_value' => isset($edit['status']) ? $edit['status'] : 0, '#options' => array('1' => t('Allow'), '0' => t('Deny')), ); $type_options = array('user' => t('Username'), 'mail' => t('E-mail'), 'host' => t('Host')); |