Changeset 3171

Show
Ignore:
Timestamp:
11/19/05 22:52:57 (3 years ago)
Author:
ryan
Message:

Silence fopen warnings and check return.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/cache.php

    r3170 r3171  
    283283 
    284284        // Acquire a write lock.  
    285         $mutex = fopen($this->cache_dir.$this->flock_filename, 'w'); 
     285        $mutex = @fopen($this->cache_dir.$this->flock_filename, 'w'); 
     286        if ( false == $mutex) 
     287            return; 
    286288        flock($mutex, LOCK_EX); 
    287289