1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00
This commit is contained in:
Eloy Lafuente (stronk7) 2020-01-28 22:43:22 +01:00
commit f5cb242afd

@ -68,7 +68,7 @@ class file_temp_cleanup_task extends scheduled_task {
// Now loop through again and remove old files and directories.
for ($iter->rewind(); $iter->valid(); $iter->next()) {
$node = $iter->getRealPath();
if (!is_readable($node)) {
if (!isset($modifieddateobject[$node]) || !is_readable($node)) {
continue;
}