summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2014-03-14 15:49:47 +0100
committerAhmad Anbar <aanbar@gmail.com>2014-03-14 15:49:47 +0100
commit00421bf248f5b9270166f0057d3e493899057e81 (patch)
treeb34e0ff5565efdbfbe91bff3f627964ea4d30510 /system/libraries
parentb79d75d21fc9438679ed0552b8cd4042db80b8f6 (diff)
Fixed filemtime
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Zip.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index c634b1133..ab30a9019 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -133,7 +133,7 @@ class CI_Zip {
protected function _get_mod_time($dir)
{
// filemtime() may return false, but raises an error for non-existing files
- $date = file_exists($dir) ? filemtime($dir) : getdate($this->now);
+ $date = file_exists($dir) ? getdate(filemtime($dir)) : getdate($this->now);
return array(
'file_mtime' => ($date['hours'] << 11) + ($date['minutes'] << 5) + $date['seconds'] / 2,