summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorThomas Traub <thomastraub2000@yahoo.de>2011-12-05 14:58:29 +0100
committerThomas Traub <thomastraub2000@yahoo.de>2011-12-05 14:58:29 +0100
commit98f85b177d6ebf6dbc3a2ec8313ef738eca2fbf2 (patch)
tree54852cb7bd44c0093928596cf96103915e251266 /system/libraries
parent29130086c3b8df146c8c599f5ba47038efa10faf (diff)
Took out the now unnecessary error suppression
Diffstat (limited to 'system/libraries')
-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 8e4357051..ef6c3e530 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -99,8 +99,8 @@ class CI_Zip {
*/
function _get_mod_time($dir)
{
- // filemtime() will return false, but it does raise an error.
- $date = (file_exists($dir) && @filemtime($dir)) ? filemtime($dir) : getdate($this->now);
+ // filemtime() may return false, but raises an error for non-existing files
+ $date = (file_exists($dir) && filemtime($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'];