summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Watcher.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-25 14:52:38 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-25 14:52:38 +0200
commitf31d0ce87ce3b8a11414d2fc763ce244d72c5ef1 (patch)
tree96009bbb6c08e828ec17b7d7b1b464dcc0bc5234 /lib/private/Files/Cache/Watcher.php
parent53484244176ee9c026affa67e4568e7d93dd4a36 (diff)
parent5a0938ad8ed414bd36e1f861f92ed5019bf4926b (diff)
downloadnextcloud-server-f31d0ce87ce3b8a11414d2fc763ce244d72c5ef1.tar.gz
nextcloud-server-f31d0ce87ce3b8a11414d2fc763ce244d72c5ef1.zip
Merge branch 'master' of https://github.com/d--j/core into d--j-master
Diffstat (limited to 'lib/private/Files/Cache/Watcher.php')
-rw-r--r--lib/private/Files/Cache/Watcher.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Watcher.php b/lib/private/Files/Cache/Watcher.php
index a00e875a2d4..0cf6caf0c28 100644
--- a/lib/private/Files/Cache/Watcher.php
+++ b/lib/private/Files/Cache/Watcher.php
@@ -106,7 +106,9 @@ class Watcher implements IWatcher {
if ($cachedData['mimetype'] === 'httpd/unix-directory') {
$this->cleanFolder($path);
}
- $this->cache->correctFolderSize($path);
+ if ($this->cache instanceof Cache) {
+ $this->cache->correctFolderSize($path);
+ }
}
/**