summaryrefslogtreecommitdiff
path: root/includes/install.core.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-24 21:36:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-24 21:36:22 +0000
commite22b2153a2a83b1d1eca60c62703514cd09a55aa (patch)
tree3a15f99951e57c3409b5dddb2729bb4ff368da0a /includes/install.core.inc
parent01f5742f19d0731aa28da41a220db0386eb4ce32 (diff)
downloadbrdo-e22b2153a2a83b1d1eca60c62703514cd09a55aa.tar.gz
brdo-e22b2153a2a83b1d1eca60c62703514cd09a55aa.tar.bz2
- Patch #140783 by sun: a select list without #default_value() always passes form validation.
Diffstat (limited to 'includes/install.core.inc')
-rw-r--r--includes/install.core.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/install.core.inc b/includes/install.core.inc
index 56f3e4091..b6dd5f1b3 100644
--- a/includes/install.core.inc
+++ b/includes/install.core.inc
@@ -1749,11 +1749,11 @@ function _install_configure_form($form, &$form_state, &$install_state) {
);
$countries = country_get_list();
- $countries = array_merge(array('' => st('No default country')), $countries);
$form['server_settings']['site_default_country'] = array(
'#type' => 'select',
'#title' => t('Default country'),
- '#default_value' => variable_get('site_default_country', ''),
+ '#required' => FALSE,
+ '#default_value' => variable_get('site_default_country', NULL),
'#options' => $countries,
'#description' => st('Select the default country for the site.'),
'#weight' => 0,