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:
parent
16c4b30145
commit
5f5694ee64
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue