From 1e04b134f4df85756e509b671ee14e901b65178c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Sun, 2 Sep 2007 12:46:21 +0000
Subject: #172453 by webchick: proper default value for user roles (radios need
 an int, not an array)

---
 modules/user/user.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'));
-- 
cgit v1.2.3