WordPress.org

Make WordPress Core

Changeset 7419


Ignore:
Timestamp:
03/20/08 19:16:38 (6 years ago)
Author:
ryan
Message:

Don't error_log() if error_log file is not writable. see #5771

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r7418 r7419  
    196196 
    197197        $log_file = @ini_get('error_log'); 
    198         if ( !empty($log_file) && ('syslog' != $log_file) && !is_readable($log_file) ) 
     198        if ( !empty($log_file) && ('syslog' != $log_file) && !is_writable($log_file) ) 
    199199            $log_error = false; 
    200200 
Note: See TracChangeset for help on using the changeset viewer.