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-20 16:18:50 +0000 |
commit | 88a180fadb73f21cb0af32b4d2a9db6d6baf35a5 (patch) | |
tree | 0a31c63d2f833275d272735380454eef1ac04c48 /lib/private | |
parent | 95d81c36ffff9c19681255f2af86e101409f2125 (diff) | |
download | nextcloud-server-88a180fadb73f21cb0af32b4d2a9db6d6baf35a5.tar.gz nextcloud-server-88a180fadb73f21cb0af32b4d2a9db6d6baf35a5.zip |
Fix fileglobalgc unlink parameter warnings
Diffstat (limited to 'lib/private')
-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); + }); } } |