diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-20 12:38:54 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-20 12:38:54 +0100 |
commit | 87a754c72ea3414b7c12a30c1538995d4f48de3b (patch) | |
tree | dd3da87927447dc4afa0cc2a2791f78463a7ba00 /apps/files_sharing/lib/external/storage.php | |
parent | 2fe6513557e22653551cfe59c006282c3793b1b9 (diff) | |
download | nextcloud-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.php | 2 |
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; |