diff --git a/application/Espo/Core/Utils/Database/Helper.php b/application/Espo/Core/Utils/Database/Helper.php index 1acec3adf5..baed2fa546 100644 --- a/application/Espo/Core/Utils/Database/Helper.php +++ b/application/Espo/Core/Utils/Database/Helper.php @@ -207,7 +207,7 @@ class Helper { $databaseParams = DatabaseParams::create() ->withHost($params['host'] ?? null) - ->withPort(isset($params['host']) ? (int) $params['host'] : null) + ->withPort(isset($params['port']) ? (int) $params['port'] : null) ->withName($params['dbname'] ?? null) ->withUsername($params['user'] ?? null) ->withPassword($params['password'] ?? null)