]> source.dussan.org Git - nextcloud-server.git/commitdiff
avoid $this->cache being null - fixes #13491
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 20 Jan 2015 11:38:54 +0000 (12:38 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 20 Jan 2015 11:38:54 +0000 (12:38 +0100)
apps/files_sharing/lib/external/storage.php

index 306a7b8db8aca0e0e5c50bd95e7545467bc412f4..0d41176e45a86d2db08056e7ceca03261a78ceb9 100644 (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;