summaryrefslogtreecommitdiffstats
path: root/lib/private/cache
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-18 00:07:18 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-18 00:07:18 +0000
commit42fcd0e8b7bda681069a79be1511a2fe407f09fa (patch)
treea7506a514a77d4e37e3153811c12ff6aa982932b /lib/private/cache
parentc69cd28a734de8dd974223da4e9ff652b4baca46 (diff)
downloadnextcloud-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.php4
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);
+ });
}
}