diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-08-02 10:25:14 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-08-02 10:25:14 +0200 |
commit | 311d876f0b97ba6f666b23d0fbe0bfce0973e792 (patch) | |
tree | e0b30be6e3060f9e636cbcade3f2659940f9d2a0 | |
parent | b2c5869fe24eff81a92bc233bfef374bdb7afc31 (diff) |
Hide PHP warning when calling filemtime() on not-existent file
-rw-r--r-- | program/lib/Roundcube/rcube.php | 4 |
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); } } |