diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-18 00:07:18 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-03-18 00:07:18 +0000 |
commit | 42fcd0e8b7bda681069a79be1511a2fe407f09fa (patch) | |
tree | a7506a514a77d4e37e3153811c12ff6aa982932b /lib/private/cache | |
parent | c69cd28a734de8dd974223da4e9ff652b4baca46 (diff) | |
download | nextcloud-server-42fcd0e8b7bda681069a79be1511a2fe407f09fa.tar.gz nextcloud-server-42fcd0e8b7bda681069a79be1511a2fe407f09fa.zip |
Fix fileglobalgc unlink parameter warnings
Diffstat (limited to 'lib/private/cache')
-rw-r--r-- | lib/private/cache/fileglobalgc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/cache/fileglobalgc.php b/lib/private/cache/fileglobalgc.php index 039992718ab..0bd3f73a5aa 100644 --- a/lib/private/cache/fileglobalgc.php +++ b/lib/private/cache/fileglobalgc.php @@ -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); + }); } } |