Don't error_log() if error_log file is not writable. see #5771
git-svn-id: https://develop.svn.wordpress.org/trunk@7419 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
561b190a79
commit
6a0fae69b5
@ -195,7 +195,7 @@ class wpdb {
|
||||
$log_error = false;
|
||||
|
||||
$log_file = @ini_get('error_log');
|
||||
if ( !empty($log_file) && ('syslog' != $log_file) && !is_readable($log_file) )
|
||||
if ( !empty($log_file) && ('syslog' != $log_file) && !is_writable($log_file) )
|
||||
$log_error = false;
|
||||
|
||||
if ( $log_error )
|
||||
|
Loading…
Reference in New Issue
Block a user