Silence warnings if error_log is disabled. fixes #5771

git-svn-id: https://develop.svn.wordpress.org/trunk@7037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-26 09:45:51 +00:00
parent 7825a986f9
commit a8613a3e4d
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class wpdb {
$error_str = "WordPress database error $str for query $this->last_query";
if ( $caller = $this->get_caller() )
$error_str .= " made by $caller";
error_log($error_str, 0);
@error_log($error_str, 0);
// Is error output turned on or not..
if ( !$this->show_errors )