From d290b725d83d4918db8935c5946be6d46b55afe2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 21 Apr 2010 08:56:06 +0000 Subject: #777138 by realityloop: Fixed Strict warning: Only variables should be passed by reference in install_settings_form(). --- includes/install.core.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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']); } - -- cgit v1.2.3