Fix notice. See #12362

git-svn-id: https://develop.svn.wordpress.org/trunk@13578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-03-03 23:07:23 +00:00
parent c7fdac20df
commit 7b7554b34d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );