summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-08-02 10:25:14 +0200
committerAleksander Machniak <alec@alec.pl>2013-08-02 10:25:14 +0200
commit311d876f0b97ba6f666b23d0fbe0bfce0973e792 (patch)
treee0b30be6e3060f9e636cbcade3f2659940f9d2a0
parentb2c5869fe24eff81a92bc233bfef374bdb7afc31 (diff)
Hide PHP warning when calling filemtime() on not-existent file
-rw-r--r--program/lib/Roundcube/rcube.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php
index ce97cd0a5..e0f889a87 100644
--- a/program/lib/Roundcube/rcube.php
+++ b/program/lib/Roundcube/rcube.php
@@ -498,11 +498,11 @@ class rcube
if ($tmp && ($dir = opendir($tmp))) {
while (($fname = readdir($dir)) !== false) {
- if ($fname{0} == '.') {
+ if ($fname[0] == '.') {
continue;
}
- if (filemtime($tmp.'/'.$fname) < $expire) {
+ if (@filemtime($tmp.'/'.$fname) < $expire) {
@unlink($tmp.'/'.$fname);
}
}