allow connections to pgsql without password
This commit is contained in:
parent
6485f0a6b6
commit
1d064e0da5
6
db.php
6
db.php
|
@ -5,7 +5,11 @@ require_once "config.php";
|
|||
function db_connect($host, $user, $pass, $db) {
|
||||
if (DB_TYPE == "pgsql") {
|
||||
|
||||
$string = "dbname=$db user=$user password=$pass";
|
||||
$string = "dbname=$db user=$user";
|
||||
|
||||
if ($pass) {
|
||||
$string .= " password=$pass";
|
||||
}
|
||||
|
||||
if ($host) {
|
||||
$string .= " host=$host";
|
||||
|
|
Loading…
Reference in New Issue