diff options
author | mgriego <mgriego@nearband.com> | 2014-10-20 23:42:20 +0400 |
---|---|---|
committer | mgriego <mgriego@nearband.com> | 2014-10-20 23:42:20 +0400 |
commit | 1b87ec7c6c1854a2faa6e07bc0b0e79f35fda716 (patch) | |
tree | 6ebc062247948ff74b6636df08ec268c57e9601d /core | |
parent | 31e6fb0e09ba04713a06e61b185afcbe1978cf9c (diff) |
Suppress errors while performing file cleanup during simultaneous cron runs.
Diffstat (limited to 'core')
-rw-r--r-- | core/CliMulti.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php index 6de96af5b0..e69dbf9005 100644 --- a/core/CliMulti.php +++ b/core/CliMulti.php @@ -204,9 +204,9 @@ class CliMulti { } foreach ($files as $file) { - $timeLastModified = filemtime($file); + $timeLastModified = @filemtime($file); - if ($timeOneWeekAgo > $timeLastModified) { + if ($timeLastModified !== FALSE && $timeOneWeekAgo > $timeLastModified) { unlink($file); } } |