Don't continue working on the bugzilla database if we were unable to connect to it
This commit is contained in:
@@ -27,6 +27,7 @@ function query_bugzilladb($sQuery,$sComment="")
|
|||||||
{
|
{
|
||||||
// The last argument makes sure we are really opening a new connection
|
// The last argument makes sure we are really opening a new connection
|
||||||
$hBugzillaLink = mysql_connect(BUGZILLA_DBHOST, BUGZILLA_DBUSER, BUGZILLA_DBPASS,true);
|
$hBugzillaLink = mysql_connect(BUGZILLA_DBHOST, BUGZILLA_DBUSER, BUGZILLA_DBPASS,true);
|
||||||
|
if(!$hBugzillaLink) return;
|
||||||
mysql_select_db(BUGZILLA_DB, $hBugzillaLink);
|
mysql_select_db(BUGZILLA_DB, $hBugzillaLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user