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:
parent
7ad3611a84
commit
4121fc3e21
1 changed files with 2 additions and 2 deletions
4
dist/debian/dbconfig-common.php
vendored
4
dist/debian/dbconfig-common.php
vendored
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue