Silence warnings if error_log is disabled. fixes #5771

git-svn-id: http://svn.automattic.com/wordpress/trunk@7037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-26 09:45:51 +00:00
parent 16c4b30145
commit 5f5694ee64

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 )