Make WordPress Core

Changeset 3171


Ignore:
Timestamp:
11/19/2005 10:52:57 PM (20 years ago)
Author:
ryan
Message:

Silence fopen warnings and check return.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.