summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-01 11:19:33 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-01 11:19:33 -0500
commitf2ca7023e1ece60dc3cebc5cd770c7373f53c93a (patch)
treee0d35fd7fbd71475422aa3dad9ef0fdf87e9850d /apps/files_sharing/lib/cache.php
parent3ee3323b8766992a0b60bb76b909e49fc1ea76d2 (diff)
downloadnextcloud-server-f2ca7023e1ece60dc3cebc5cd770c7373f53c93a.tar.gz
nextcloud-server-f2ca7023e1ece60dc3cebc5cd770c7373f53c93a.zip
Fix Shared root problems with Watcher and Quota proxy
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index a22e7af7f59..60f29ce5eeb 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -169,6 +169,9 @@ class Shared_Cache extends Cache {
* @return int, Cache::NOT_FOUND, Cache::PARTIAL, Cache::SHALLOW or Cache::COMPLETE
*/
public function getStatus($file) {
+ if ($file == '') {
+ return self::COMPLETE;
+ }
if ($cache = $this->getSourceCache($file)) {
return $cache->getStatus($this->files[$file]);
}