Skip to content
Snippets Groups Projects
Commit 389916b8 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#84173 by plumbley and Jax. Don't assume the database port is set.

parent 7851004a
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment