Swap error logging and addmsg() calls as addmsg() performs a database transaction and will clear out any error that
we wanted to report when error logging and calling mysql_error()
This commit is contained in:
@@ -113,10 +113,10 @@ function query_bugzilladb($sQuery,$sComment="")
|
||||
|
||||
function query_error($sQuery, $sComment="")
|
||||
{
|
||||
error_log::log_error(ERROR_SQL, "Query: '".$sQuery."' mysql_error(): '".mysql_error()."' comment: '".$sComment."'");
|
||||
|
||||
$sStatusMessage = "<p><b>An internal error has occurred and has been logged and reported to appdb admins</b></p>";
|
||||
addmsg($sStatusMessage);
|
||||
|
||||
error_log::log_error(ERROR_SQL, "Query: '".$sQuery."' mysql_error(): '".mysql_error()."' comment: '".$sComment."'");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user