summaryrefslogtreecommitdiffstats
path: root/system/libraries/Zip.php
diff options
context:
space:
mode:
authorThomas Traub <thomastraub2000@yahoo.de>2011-12-06 06:30:37 +0100
committerThomas Traub <thomastraub2000@yahoo.de>2011-12-06 06:30:37 +0100
commitdba657efda6e057dc0c741dc449937c8ba5a029a (patch)
tree9654a4140ece88870edcb9b244ffc4643614aadb /system/libraries/Zip.php
parent7fcfbda4cd72d4198c9b45ac13bcbd47bf067b81 (diff)
Update system/libraries/Zip.php
Diffstat (limited to 'system/libraries/Zip.php')
-rw-r--r--system/libraries/Zip.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 2fc30e469..52f1bc3d0 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -100,8 +100,8 @@ class CI_Zip {
function _get_mod_time($dir)
{
// filemtime() may return false, but raises an error for non-existing files
- $date = (file_exists($dir) && $filemtime = filemtime($dir)) ? $filemtime : getdate($this->now);
-
+ $date = (file_exists($dir)) ? filemtime($dir): getdate($this->now);
+
$time['file_mtime'] = ($date['hours'] << 11) + ($date['minutes'] << 5) + $date['seconds'] / 2;
$time['file_mdate'] = (($date['year'] - 1980) << 9) + ($date['mon'] << 5) + $date['mday'];