]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing unencrypted file size
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 1 Apr 2015 15:42:56 +0000 (17:42 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:30 +0000 (13:30 +0200)
lib/private/files/storage/wrapper/encryption.php

index 09ba090acffd64210ba96bd7c7b37b151162869a..7cc488aa914f73912eea2bae68ce22ad0889922a 100644 (file)
@@ -88,8 +88,11 @@ class Encryption extends Wrapper {
 
                $info = $this->getCache()->get($path);
 
-               if (isset($this->unencryptedSize[$fullPath]) && isset($info['fileid'])) {
+               if (isset($this->unencryptedSize[$fullPath])) {
                        $size = $this->unencryptedSize[$fullPath];
+               }
+
+               if (isset($info['fileid'])) {
                        $info['encrypted'] = true;
                        $info['size'] = $size;
                        $this->getCache()->put($path, $info);