#172453 by webchick: proper default value for user roles (radios need an int, not an array)

6.x
Gábor Hojtsy 2007-09-02 12:46:21 +00:00
parent f0d5a4245b
commit 1e04b134f4
1 changed files with 1 additions and 1 deletions

View File

@ -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'));