summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
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 ef6c3e530..2fc30e469 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -100,7 +100,7 @@ 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($dir)) ? filemtime($dir) : getdate($this->now);
+ $date = (file_exists($dir) && $filemtime = filemtime($dir)) ? $filemtime : 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'];