diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-04 07:16:20 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-04 07:16:20 +0000 |
commit | 389916b8bef28ef11881bc71cd0ec59b8a69b6f7 (patch) | |
tree | 9e87398bb7706cf080757dfc8133ca3d5d2ccc87 | |
parent | 7851004a1e7ae808f4879d3570617c4a5a62b6ee (diff) | |
download | brdo-389916b8bef28ef11881bc71cd0ec59b8a69b6f7.tar.gz brdo-389916b8bef28ef11881bc71cd0ec59b8a69b6f7.tar.bz2 |
#84173 by plumbley and Jax. Don't assume the database port is set.
-rw-r--r-- | install.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install.php b/install.php index a688c1564..e3ea9ff5d 100644 --- a/install.php +++ b/install.php @@ -110,7 +110,7 @@ function install_verify_settings() { $db_user = urldecode($url['user']); $db_pass = urldecode($url['pass']); $db_host = urldecode($url['host']); - $db_port = urldecode($url['port']); + $db_port = isset($url['port']) ? urldecode($url['port']) : ''; $db_path = ltrim(urldecode($url['path']), '/'); $settings_file = './'. conf_path() .'/settings.php'; @@ -132,7 +132,7 @@ function install_change_settings($profile = 'default', $install_locale = '') { $db_user = urldecode($url['user']); $db_pass = urldecode($url['pass']); $db_host = urldecode($url['host']); - $db_port = urldecode($url['port']); + $db_port = isset($url['port']) ? urldecode($url['port']) : ''; $db_path = ltrim(urldecode($url['path']), '/'); $settings_file = './'. conf_path() .'/settings.php'; |