Commit 61ab5109 authored by wmortada's avatar wmortada

Allow for case when port is blank

parent 9178521b
......@@ -339,8 +339,12 @@ if ($installType == 'drupal') {
$drupalConfig = $_POST['drupal'];
}
else {
$dbServer = $databases['default']['default']['host'];
if (!empty($databases['default']['default']['port'])) {
$dbServer .= ':' . $databases['default']['default']['port'];
}
$drupalConfig = array(
"server" => $databases['default']['default']['host'] . ':' . $databases['default']['default']['port'],
"server" => $dbServer,
"username" => $databases['default']['default']['username'],
"password" => $databases['default']['default']['password'],
"database" => $databases['default']['default']['database'],
......
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