From 87a754c72ea3414b7c12a30c1538995d4f48de3b Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 20 Jan 2015 12:38:54 +0100 Subject: avoid $this->cache being null - fixes #13491 --- apps/files_sharing/lib/external/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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; -- cgit v1.2.3