summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-21 05:09:38 +0200
committerGreg Aker <greg@gregaker.net>2011-08-21 05:09:38 +0200
commit39909660de17ae9afb9da61209f41aeda2abc7fb (patch)
tree2401329707d043ec7257d09ebbe049ad4e41c59d /system
parent54a8dcd55f15772acd0b2b39dd8edaa7f3bfcda8 (diff)
parent5483872727be793366c4bed9f3a837cd9e63a045 (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')
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php7
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
);
}