diff options
author | Greg Aker <greg@gregaker.net> | 2011-08-21 05:09:38 +0200 |
---|---|---|
committer | Greg Aker <greg@gregaker.net> | 2011-08-21 05:09:38 +0200 |
commit | 39909660de17ae9afb9da61209f41aeda2abc7fb (patch) | |
tree | 2401329707d043ec7257d09ebbe049ad4e41c59d /system/libraries/Cache | |
parent | 54a8dcd55f15772acd0b2b39dd8edaa7f3bfcda8 (diff) | |
parent | 5483872727be793366c4bed9f3a837cd9e63a045 (diff) |
Merge branch 'resolve_issue_48' of https://github.com/benedmunds/CodeIgniter into benedmunds-resolve_issue_48
Conflicts:
user_guide/changelog.html
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_file.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/system/libraries/Cache/drivers/Cache_file.php b/system/libraries/Cache/drivers/Cache_file.php index 13e2d1af6..6c37e7005 100644 --- a/system/libraries/Cache/drivers/Cache_file.php +++ b/system/libraries/Cache/drivers/Cache_file.php @@ -157,17 +157,16 @@ class CI_Cache_file extends CI_Driver { if (is_array($data)) { - $data = $data['data']; $mtime = filemtime($this->_cache_path.$id); - if ( ! isset($data['ttl'])) + if ( ! isset($data['data']['ttl'])) { return FALSE; } return array( - 'expire' => $mtime + $data['ttl'], - 'mtime' => $mtime + 'expire' => $mtime + $data['data']['ttl'], + 'mtime' => $mtime ); } |