avoid $this->cache being null - fixes #13491

This commit is contained in:
Thomas Müller 2015-01-20 12:38:54 +01:00
parent 2fe6513557
commit 87a754c72e
1 changed files with 1 additions and 1 deletions

View File

@ -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;