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:
parent
7825a986f9
commit
a8613a3e4d
|
@ -184,7 +184,7 @@ class wpdb {
|
||||||
$error_str = "WordPress database error $str for query $this->last_query";
|
$error_str = "WordPress database error $str for query $this->last_query";
|
||||||
if ( $caller = $this->get_caller() )
|
if ( $caller = $this->get_caller() )
|
||||||
$error_str .= " made by $caller";
|
$error_str .= " made by $caller";
|
||||||
error_log($error_str, 0);
|
@error_log($error_str, 0);
|
||||||
|
|
||||||
// Is error output turned on or not..
|
// Is error output turned on or not..
|
||||||
if ( !$this->show_errors )
|
if ( !$this->show_errors )
|
||||||
|
|
Loading…
Reference in New Issue