WordPress.org

Plugin Directory

Changeset 445863


Ignore:
Timestamp:
09/30/11 20:34:35 (3 years ago)
Author:
markjaquith
Message:

Use === when checking against checkthedatabaseplease value. props John Blackbourn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apc/trunk/object-cache.php

    r273046 r445863  
    197197        $this->cache[$key] = $value; 
    198198 
    199         if ( 'checkthedatabaseplease' == $value ) 
     199        if ( 'checkthedatabaseplease' === $value ) 
    200200            $value = false; 
    201201 
     
    223223    function set( $id, $data, $group = 'default', $expire = 0 ) { 
    224224        $key = $this->key( $id, $group ); 
    225         if ( isset( $this->cache[$key] ) && ('checkthedatabaseplease' == $this->cache[$key] ) ) 
     225        if ( isset( $this->cache[$key] ) && ('checkthedatabaseplease' === $this->cache[$key] ) ) 
    226226            return false; 
    227227        $this->cache[$key] = $data; 
Note: See TracChangeset for help on using the changeset viewer.