summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--system/libraries/Cache/drivers/Cache_file.php7
-rw-r--r--user_guide/changelog.html1
2 files changed, 4 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
);
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 3e91f47c7..3e66deaf8 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -97,6 +97,7 @@ Change Log
<li class="rector">Fixed a bug (Reactor #89) where MySQL export would fail if the table had hyphens or other non alphanumeric/underscore characters.</li>
<li class="reactor">Fixed a bug (#200) where MySQL queries would be malformed after calling <samp>count_all()</samp> then <samp>db->get()</samp></li>
<li>Fixed a bug (#181) where a mis-spelling was in the form validation language file.</li>
+ <li class="reactor">Resolved issue 160. Removed unneeded array copy.</li>
</ul>
<h2>Version 2.0.3</h2>