Commit 61b175a5 authored by omega8cc's avatar omega8cc

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

parent 3545eed5
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment