Don't continue working on the bugzilla database if we were unable to connect to it

This commit is contained in:
Chris Morgan
2005-08-01 20:53:44 +00:00
committed by WineHQ
parent f6fe0a0cab
commit 415ddb3654

View File

@@ -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);
}