diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-10 08:52:53 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-10 08:52:53 +0000 |
commit | 6466ee049a43303cd602a2495d7426105ec60423 (patch) | |
tree | 0b5731c99aaf0202248621e450563e1638a97a58 /install.php | |
parent | e56e667031f5e869d1c675d4d92cdce6619fcfb0 (diff) | |
download | brdo-6466ee049a43303cd602a2495d7426105ec60423.tar.gz brdo-6466ee049a43303cd602a2495d7426105ec60423.tar.bz2 |
#92936 by webchick. Radios must always have something selected.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/install.php b/install.php index 0d480968f..b45ad40c6 100644 --- a/install.php +++ b/install.php @@ -185,12 +185,13 @@ function install_settings_form($profile, $install_locale, $settings_file, $db_ur if (count($db_types) > 1) { // Database type + $db_types = drupal_detect_database_types(); $form['basic_options']['db_type'] = array( '#type' => 'radios', '#title' => st('Database type'), '#required' => TRUE, - '#options' => drupal_detect_database_types(), - '#default_value' => $db_type, + '#options' => $db_types, + '#default_value' => ($db_type ? $db_type : current($db_types)), '#description' => st('The type of database your @drupal data will be stored in.', array('@drupal' => drupal_install_profile_name())), ); $db_path_description = st('The name of the database your @drupal data will be stored in. It must exist on your server before @drupal can be installed.', array('@drupal' => drupal_install_profile_name())); |