Fix notice. See #12362
git-svn-id: https://develop.svn.wordpress.org/trunk@13578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c7fdac20df
commit
7b7554b34d
@ -903,7 +903,7 @@ class wpdb {
|
||||
$error_str = sprintf( /*WP_I18N_DB_QUERY_ERROR*/'WordPress database error %1$s for query %2$s'/*/WP_I18N_DB_QUERY_ERROR*/, $str, $this->last_query );
|
||||
|
||||
if ( function_exists( 'error_log' )
|
||||
&& $log_file = @ini_get( 'error_log' )
|
||||
&& ( $log_file = @ini_get( 'error_log' ) )
|
||||
&& ( 'syslog' == $log_file || @is_writable( $log_file ) )
|
||||
)
|
||||
@error_log( $error_str );
|
||||
|
Loading…
Reference in New Issue
Block a user