MDL-70901 core: @ no longer masks errors in PHP 8.0
This commit is contained in:
@@ -90,7 +90,11 @@ class file_temp_cleanup_task extends scheduled_task {
|
||||
} else {
|
||||
// Return the time modified to the original date only for real files.
|
||||
if ($iter->isDir() && !$iter->isDot()) {
|
||||
touch($node, $modifieddateobject[$node]);
|
||||
try {
|
||||
@touch($node, $modifieddateobject[$node]);
|
||||
} catch (\Throwable $t) {
|
||||
null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user