Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/Connection.php')
-rw-r--r--src/classes/Connection.php6
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',