]> git.mxchange.org Git - friendica.git/commitdiff
Initialize `$port` with zero value (int) and not `false` (bool).
authorRoland Häder <roland@mxchange.org>
Sun, 22 Jul 2018 13:19:48 +0000 (15:19 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 22 Jul 2018 14:27:51 +0000 (16:27 +0200)
src/Database/DBA.php

index fa9d86bb0f07e678bccd0aa635b14d9b7aba4fab..a2f21daba5d1ee39443713b420567c5b6a09b49f 100644 (file)
@@ -51,7 +51,7 @@ class DBA
                self::$db_name = $db;
                self::$db_charset = $charset;
 
-               $port = false;
+               $port = 0;
                $serveraddr = trim($serveraddr);
 
                $serverdata = explode(':', $serveraddr);