]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix array key
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 14 Oct 2013 14:43:18 +0000 (16:43 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 14 Oct 2013 14:43:18 +0000 (16:43 +0200)
apps/files_encryption/lib/proxy.php

index f8d10bdcd8b7c30eb56513fdc52040d2fe9c32bb..042becb32e33b4d2d1be6862a08535183d883ff1 100644 (file)
@@ -348,7 +348,7 @@ class Proxy extends \OC_FileProxy {
                // if file is encrypted return real file size
                if (is_array($fileInfo) && $fileInfo['encrypted'] === true) {
                        // try to fix unencrypted file size if it doesn't look plausible
-                       if ((int)$fileInfo['size'] > 0 && (int)$fileInfo['encrypted_size'] === 0) {
+                       if ((int)$fileInfo['size'] > 0 && (int)$fileInfo['unencrypted_size'] === 0) {
                                $fixSize = $util->getFileSize($path);
                                $fileInfo['unencrypted_size'] = $fixSize;
                                // put file info if not .part file