From 415ddb3654deeddd4c13d1fb72c1536f39505bd5 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 1 Aug 2005 20:53:44 +0000 Subject: [PATCH] Don't continue working on the bugzilla database if we were unable to connect to it --- include/db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/db.php b/include/db.php index 36798a9..4de3d2d 100644 --- a/include/db.php +++ b/include/db.php @@ -27,6 +27,7 @@ function query_bugzilladb($sQuery,$sComment="") { // The last argument makes sure we are really opening a new connection $hBugzillaLink = mysql_connect(BUGZILLA_DBHOST, BUGZILLA_DBUSER, BUGZILLA_DBPASS,true); + if(!$hBugzillaLink) return; mysql_select_db(BUGZILLA_DB, $hBugzillaLink); }