Changeset 4782 for branches/1.0

Show
Ignore:
Timestamp:
08/20/08 19:06:22 (5 months ago)
Author:
romanb
Message:

Another fix for the APC cache driver.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Cache/Apc.php

    r4767 r4782  
    6666    public function contains($id)  
    6767    { 
    68         $tmp = apc_fetch($id); 
    69         if (is_array($tmp)) { 
    70             return $tmp[1]; 
    71         } 
    72         return false; 
     68        return apc_fetch($id) === false ? false : true; 
    7369    } 
    7470