Skip to content

Commit

Permalink
handle missing port
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Jan 6, 2021
1 parent 208ecdd commit be541b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/plugins/init/Drupal8.civi-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
$ssl_params = \Civi\Setup\DrupalUtil::guessSslParams($connectionOptions);
// @todo Does Drupal support unixsocket in config? Set 'server' => 'unix(/path/to/socket.sock)'
$model->db = $model->cmsDb = array(
'server' => \Civi\Setup\DbUtil::encodeHostPort($connectionOptions['host'], $connectionOptions['port'] ?: NULL),
'server' => \Civi\Setup\DbUtil::encodeHostPort($connectionOptions['host'], empty($connectionOptions['port']) ? NULL : $connectionOptions['port']),
'username' => $connectionOptions['username'],
'password' => $connectionOptions['password'],
'database' => $connectionOptions['database'],
Expand Down

0 comments on commit be541b5

Please sign in to comment.