fix array key

This commit is contained in:
Bjoern Schiessle 2013-10-14 16:43:18 +02:00
parent 4151fd3ed9
commit 58196304b8
1 changed files with 1 additions and 1 deletions

View File

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