Skip to content
Snippets Groups Projects
Commit 45cf874d authored by Grazyna Jaworska's avatar Grazyna Jaworska
Browse files

Make sure that db_port is never empty and defaults to 3306.

parent 9f1e16f5
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ function install_verify_settings() {
$db_user = urldecode($url['user']);
$db_pass = urldecode($url['pass']);
$db_host = urldecode($url['host']);
$db_port = isset($url['port']) ? urldecode($url['port']) : '';
$db_port = isset($url['port']) ? urldecode($url['port']) : '3306';
$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.
Please register or to comment