diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-10-24 17:44:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-10-24 17:44:39 +0000 |
commit | 2512ce7697e23b751d954d8541a93a2ec9af1c4f (patch) | |
tree | 41eaea64c859afa4bf5b745948ef6e2d178cc58e | |
parent | c65cfcabb51b186965422359769266ad7a536c4b (diff) | |
download | brdo-2512ce7697e23b751d954d8541a93a2ec9af1c4f.tar.gz brdo-2512ce7697e23b751d954d8541a93a2ec9af1c4f.tar.bz2 |
- Killed a warning. Reported by ax.
-rw-r--r-- | includes/database.mysql.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc index 5e578fbc2..7cb434773 100644 --- a/includes/database.mysql.inc +++ b/includes/database.mysql.inc @@ -5,10 +5,10 @@ function db_connect($url) { $url = parse_url($url); // Allow for non-standard MySQL port. - if ($url["port"]) { + if (isset($url["port"])) { $url["host"] = $url["host"] . ":" . $url["port"]; } - + mysql_pconnect($url["host"], $url["user"], $url["pass"]) or die(mysql_error()); mysql_select_db(substr($url["path"], 1)) or die("unable to select database"); |