From: Roland Häder Date: Sat, 21 Jul 2018 02:21:01 +0000 (+0200) Subject: Fixed: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d55b2f31d8be2a54ca575eb7ee6f19e222571d99;p=friendica.git Fixed: - better use `false` and `$port > 0` --- diff --git a/src/Database/DBA.php b/src/Database/DBA.php index dbf9b41ca2..f5e785955c 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -51,7 +51,7 @@ class DBA self::$db_name = $db; self::$db_charset = $charset; - $port = 3306; + $port = false; $serveraddr = trim($serveraddr); $serverdata = explode(':', $serveraddr); @@ -75,7 +75,7 @@ class DBA self::$driver = 'pdo'; $connect = "mysql:host=".$server.";dbname=".$db; - if (isset($port)) { + if ($port > 0) { $connect .= ";port=".$port; }