diff options
Diffstat (limited to 'src/classes/Connection.php')
-rw-r--r-- | src/classes/Connection.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classes/Connection.php b/src/classes/Connection.php index 645169fa..eb898f7c 100644 --- a/src/classes/Connection.php +++ b/src/classes/Connection.php @@ -165,11 +165,7 @@ class Connection $this->conn->setFetchMode($fetchMode); // Ignore host if null if (null === $host || '' === $host) { - if (null !== $port && '' !== $port) { - $pghost = ':' . $port; - } else { - $pghost = ''; - } + $pghost = null !== $port && '' !== $port ? ':' . $port : ''; } else { $pghost = \sprintf( '%s:%s', |