--- install.pgsql.inc.old 2007-03-06 15:23:12.000000000 +1300 +++ install.pgsql.inc 2007-03-06 15:23:15.000000000 +1300 @@ -34,7 +34,10 @@ $url['path'] = urldecode($url['path']); // Build pgsql connection string and allow for non-standard PostgreSQL port. - $conn_string = ' user='. $url['user'] .' dbname='. substr($url['path'], 1) .' password='. $url['pass'] . ' host=' . $url['host']; + $conn_string = ' user='. $url['user'] .' dbname='. substr($url['path'], 1); + + $conn_string .= $url['pass'] ? ' password='. $url['pass'] : ''; + $conn_string .= isset($url['host']) ? ' host=' . $url['host'] : ''; $conn_string .= isset($url['port']) ? ' port=' . $url['port'] : ''; // Test connecting to the database.