diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index 9b167172..20fa4faf 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -274,7 +274,7 @@ class CI_Cache_file extends CI_Driver { $data = unserialize(file_get_contents($this->_cache_path.$id)); - if ($data['ttl'] > 0 && time() > $data['time'] + $data['ttl']) + if ($data && $data['ttl'] > 0 && time() > $data['time'] + $data['ttl']) { file_exists($this->_cache_path.$id) && unlink($this->_cache_path.$id); return FALSE;