mirror of
https://github.com/nextcloud/server.git
synced 2026-02-13 15:54:59 -05:00
Fix fileglobalgc unlink parameter warnings
This commit is contained in:
parent
c69cd28a73
commit
42fcd0e8b7
1 changed files with 3 additions and 1 deletions
4
lib/private/cache/fileglobalgc.php
vendored
4
lib/private/cache/fileglobalgc.php
vendored
|
|
@ -48,6 +48,8 @@ class FileGlobalGC extends Job {
|
|||
return;
|
||||
}
|
||||
$paths = $this->getExpiredPaths($cacheDir, $now);
|
||||
array_walk($paths, 'unlink');
|
||||
array_walk($paths, function($file) {
|
||||
unlink($file);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue