diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-25 14:52:38 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-25 14:52:38 +0200 |
commit | f31d0ce87ce3b8a11414d2fc763ce244d72c5ef1 (patch) | |
tree | 96009bbb6c08e828ec17b7d7b1b464dcc0bc5234 /lib/private/Files/Cache/Watcher.php | |
parent | 53484244176ee9c026affa67e4568e7d93dd4a36 (diff) | |
parent | 5a0938ad8ed414bd36e1f861f92ed5019bf4926b (diff) | |
download | nextcloud-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.php | 4 |
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); + } } /** |