summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-08-11 14:03:34 +0200
committertianhe1986 <w1s2j3229@163.com>2016-08-11 14:03:34 +0200
commit87c50228998440b86f1ee4233ea8c6aacb0a8a3c (patch)
treeb211a3c632deadae20b6a019beeb215b9d3492ef /system/libraries/Cache
parent4c8a0eb32c2aa94eb621171a89084f1388e3c4c5 (diff)
Checking for $data['time'].
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php
index c46de2f95..e5614f8bd 100644
--- a/system/libraries/Cache/drivers/Cache_file.php
+++ b/system/libraries/Cache/drivers/Cache_file.php
@@ -227,7 +227,7 @@ class CI_Cache_file extends CI_Driver {
{
$mtime = filemtime($this->_cache_path.$id);
- if ( ! isset($data['ttl']))
+ if ( ! isset($data['ttl']) OR ! isset($data['time']))
{
return FALSE;
}