#172453 by webchick: proper default value for user roles (radios need an int, not an array)
parent
f0d5a4245b
commit
1e04b134f4
|
@ -2062,7 +2062,7 @@ function user_admin_access_form(&$form_state, $edit, $submit) {
|
||||||
$form['status'] = array(
|
$form['status'] = array(
|
||||||
'#type' => 'radios',
|
'#type' => 'radios',
|
||||||
'#title' => t('Access type'),
|
'#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')),
|
'#options' => array('1' => t('Allow'), '0' => t('Deny')),
|
||||||
);
|
);
|
||||||
$type_options = array('user' => t('Username'), 'mail' => t('E-mail'), 'host' => t('Host'));
|
$type_options = array('user' => t('Username'), 'mail' => t('E-mail'), 'host' => t('Host'));
|
||||||
|
|
Loading…
Reference in New Issue