Index: includes/install.core.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/install.core.inc,v
retrieving revision 1.9
diff -u -p -r1.9 install.core.inc
--- includes/install.core.inc	11 Apr 2010 18:33:43 -0000	1.9
+++ includes/install.core.inc	21 Apr 2010 05:54:36 -0000
@@ -840,13 +840,14 @@ function install_settings_form($form, &$
   drupal_set_title(st('Database configuration'));
 
   $drivers = drupal_detect_database_types();
+  $drivers_keys = array_keys($drivers);
 
   $form['driver'] = array(
     '#type' => 'radios',
     '#title' => st('Database type'),
     '#required' => TRUE,
     '#options' => $drivers,
-    '#default_value' => !empty($database['driver']) ? $database['driver'] : current(array_keys($drivers)),
+    '#default_value' => !empty($database['driver']) ? $database['driver'] : current($drivers_keys),
     '#description' => st('The type of database your @drupal data will be stored in.', array('@drupal' => drupal_install_profile_distribution_name())),
   );
   if (count($drivers) == 1) {
@@ -1752,4 +1753,3 @@ function install_configure_form_submit($
   // Record when this install ran.
   variable_set('install_time', $_SERVER['REQUEST_TIME']);
 }
-
