Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
67f7d694
Commit
67f7d694
authored
Apr 08, 2005
by
Dries Buytaert
Browse files
- Fixed bug
#19868
: undefined variable.
parent
38eef18e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database.pgsql.inc
View file @
67f7d694
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment