Commit 2512ce76 authored by Dries's avatar Dries

- Killed a warning.  Reported by ax.
parent c65cfcab
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment