diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-08 11:24:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-08 11:24:46 +0000 |
commit | 67f7d6947ebe7dc3222f20058edccf60852286e7 (patch) | |
tree | 12cd9a7d0b57a08a66a2da25787a274e398367e9 | |
parent | 38eef18e98b4b546ce9e641f3b0c6284468c651c (diff) | |
download | brdo-67f7d6947ebe7dc3222f20058edccf60852286e7.tar.gz brdo-67f7d6947ebe7dc3222f20058edccf60852286e7.tar.bz2 |
- Fixed bug #19868: undefined variable.
-rw-r--r-- | includes/database.pgsql.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database.pgsql.inc b/includes/database.pgsql.inc index 8a013136a..2ee1bd309 100644 --- a/includes/database.pgsql.inc +++ b/includes/database.pgsql.inc @@ -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; |