summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-06-02 11:06:39 +0000
committerDries Buytaert <dries@buytaert.net>2007-06-02 11:06:39 +0000
commit3f7364b9143d97c252b1a4a89ce958cc012479fb (patch)
treedbda38b2348f4cc904c292260bf6f39434d66f60 /install.php
parent9f45292d77a5d97478bc5e83f418a60f3a463b98 (diff)
downloadbrdo-3f7364b9143d97c252b1a4a89ce958cc012479fb.tar.gz
brdo-3f7364b9143d97c252b1a4a89ce958cc012479fb.tar.bz2
- Patch #148652 by JohnAlbin: fixes 'undefined index' notices in installer.
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.php b/install.php
index 815ff1345..987bfd3ab 100644
--- a/install.php
+++ b/install.php
@@ -159,9 +159,9 @@ function install_change_settings($profile = 'default', $install_locale = '') {
global $db_url, $db_type, $db_prefix;
$url = parse_url(is_array($db_url) ? $db_url['default'] : $db_url);
- $db_user = urldecode($url['user']);
- $db_pass = urldecode($url['pass']);
- $db_host = urldecode($url['host']);
+ $db_user = isset($url['user']) ? urldecode($url['user']) : '';
+ $db_pass = isset($url['pass']) ? urldecode($url['pass']) : '';
+ $db_host = isset($url['host']) ? urldecode($url['host']) : '';
$db_port = isset($url['port']) ? urldecode($url['port']) : '';
$db_path = ltrim(urldecode($url['path']), '/');
$conf_path = './'. conf_path();
@@ -600,7 +600,7 @@ function install_tasks($profile, $task) {
$output = '';
// Bootstrap newly installed Drupal, while preserving existing messages.
- $messages = $_SESSION['messages'];
+ $messages = isset($_SESSION['messages']) ? $_SESSION['messages'] : '';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$_SESSION['messages'] = $messages;