allow connections to pgsql without password

master
Andrew Dolgov 14 years ago
parent 6485f0a6b6
commit 1d064e0da5

@ -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…
Cancel
Save