Changeset 2999

Show
Ignore:
Timestamp:
07/08/2008 06:36:43 AM (5 months ago)
Author:
Geert
Message:

Fixed #563

Location:
trunk/system/libraries/drivers
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Cache.php

    r2430 r2999  
    2424        /** 
    2525         * Get a cache item. 
     26         * Return FALSE if the cache item is not found. 
    2627         */ 
    2728        public function get($id); 
  • trunk/system/libraries/drivers/Cache/Apc.php

    r2430 r2999  
    1818        } 
    1919 
    20         public function get($key) 
     20        public function get($id) 
    2121        { 
    22                 return apc_fetch($key); 
     22                return apc_fetch($id); 
    2323        } 
    2424 
  • trunk/system/libraries/drivers/Cache/Eaccelerator.php

    r2430 r2999  
    2020        public function get($id) 
    2121        { 
    22                 return eaccelerator_get($id); 
     22                return (($return = eaccelerator_get($id)) === NULL) ? FALSE : $return; 
    2323        } 
    2424 
  • trunk/system/libraries/drivers/Cache/File.php

    r2593 r2999  
    174174                } 
    175175 
    176                 // Return NULL if there is no data 
    177                 return isset($data) ? $data : NULL; 
     176                // Return FALSE if there is no data 
     177                return isset($data) ? $data : FALSE; 
    178178        } 
    179179 
  • trunk/system/libraries/drivers/Cache/Sqlite.php

    r2598 r2999  
    178178 
    179179                // No valid cache foud 
    180                 return NULL; 
     180                return FALSE; 
    181181        } 
    182182