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:
Ryan Boren 2008-03-20 19:16:38 +00:00
parent 561b190a79
commit 6a0fae69b5
1 changed files with 1 additions and 1 deletions

View File

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