1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Database server ports must be integers

This commit is contained in:
J. King 2021-07-07 16:19:01 -04:00
parent 7ad3611a84
commit 4121fc3e21

View file

@ -22,7 +22,7 @@ if (file_exists($dbconfpath)) {
'dbPostgreSQLHost' => $dbserver ?? "", 'dbPostgreSQLHost' => $dbserver ?? "",
'dbPostgreSQLUser' => $dbuser ?? "arsse", 'dbPostgreSQLUser' => $dbuser ?? "arsse",
'dbPostgreSQLPass' => $dbpass ?? "", 'dbPostgreSQLPass' => $dbpass ?? "",
'dbPostgreSQLPort' => $dbport ?? 5432, 'dbPostgreSQLPort' => (int) $dbport ?: 5432,
'dbPostgreSQLDb' => $dbname ?? "arsse", 'dbPostgreSQLDb' => $dbname ?? "arsse",
]; ];
} elseif ($dbtype === "mysql") { } elseif ($dbtype === "mysql") {
@ -31,7 +31,7 @@ if (file_exists($dbconfpath)) {
'dbMySQLHost' => $dbserver ?? "", 'dbMySQLHost' => $dbserver ?? "",
'dbMySQLUser' => $dbuser ?? "arsse", 'dbMySQLUser' => $dbuser ?? "arsse",
'dbMySQLPass' => $dbpass ?? "", 'dbMySQLPass' => $dbpass ?? "",
'dbMySQLPort' => $dbport ?? 3306, 'dbMySQLPort' => (int) $dbport ?: 3306,
'dbMySQLDb' => $dbname ?? "arsse", 'dbMySQLDb' => $dbname ?? "arsse",
]; ];
} else { } else {