Hide PHP warning when calling filemtime() on not-existent file

pull/100/merge
Aleksander Machniak 11 years ago
parent b2c5869fe2
commit 311d876f0b

@ -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);
}
}

Loading…
Cancel
Save