From 2512ce7697e23b751d954d8541a93a2ec9af1c4f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 Oct 2002 17:44:39 +0000 Subject: - Killed a warning. Reported by ax. --- includes/database.mysql.inc | 4 ++-- 1 file 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"); -- cgit v1.2.3