summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/external/storage.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-20 12:38:54 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-20 12:38:54 +0100
commit87a754c72ea3414b7c12a30c1538995d4f48de3b (patch)
treedd3da87927447dc4afa0cc2a2791f78463a7ba00 /apps/files_sharing/lib/external/storage.php
parent2fe6513557e22653551cfe59c006282c3793b1b9 (diff)
downloadnextcloud-server-87a754c72ea3414b7c12a30c1538995d4f48de3b.tar.gz
nextcloud-server-87a754c72ea3414b7c12a30c1538995d4f48de3b.zip
avoid $this->cache being null - fixes #13491
Diffstat (limited to 'apps/files_sharing/lib/external/storage.php')
-rw-r--r--apps/files_sharing/lib/external/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 306a7b8db8a..0d41176e45a 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -103,7 +103,7 @@ class Storage extends DAV implements ISharedStorage {
}
public function getCache($path = '', $storage = null) {
- if (!$storage) {
+ if (is_null($this->cache)) {
$this->cache = new Cache($this, $this->remote, $this->remoteUser);
}
return $this->cache;