- Fixed bug #19868: undefined variable.

4.7.x
Dries Buytaert 2005-04-08 11:24:46 +00:00
parent 38eef18e98
commit 67f7d6947e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function db_connect($url) {
$url = parse_url($url);
$conn_string = ' user='. $url['user'] .' dbname='. substr($url['path'], 1) .' password='. $url['pass'] . ' host=' . $url['host'];
$conn_string .= ($url['port']) ? ' port=' . $url['port'] : '';
$conn_string .= isset($url['port']) ? ' port=' . $url['port'] : '';
$connection = pg_connect($conn_string) or die(pg_last_error());
return $connection;