diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-21 08:56:06 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-21 08:56:06 +0000 |
commit | d290b725d83d4918db8935c5946be6d46b55afe2 (patch) | |
tree | 1daa86da4116367fc434ef53b6e7282ce8fd4779 /includes/install.core.inc | |
parent | 6db0ee7330061d352eda965e9d844beeabcf2dff (diff) | |
download | brdo-d290b725d83d4918db8935c5946be6d46b55afe2.tar.gz brdo-d290b725d83d4918db8935c5946be6d46b55afe2.tar.bz2 |
#777138 by realityloop: Fixed Strict warning: Only variables should be passed by reference in install_settings_form().
Diffstat (limited to 'includes/install.core.inc')
-rw-r--r-- | includes/install.core.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/install.core.inc b/includes/install.core.inc index 6126e7a1a..599eef540 100644 --- a/includes/install.core.inc +++ b/includes/install.core.inc @@ -840,13 +840,14 @@ function install_settings_form($form, &$form_state, &$install_state) { 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($form, &$form_state) { // Record when this install ran. variable_set('install_time', $_SERVER['REQUEST_TIME']); } - |