Merge pull request #7655 from owncloud/shared-unencryptedsize

Fixed warning when browsing Shared folder
This commit is contained in:
Vincent Petry 2014-03-21 12:28:27 +01:00
commit 37af74efb3
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class Proxy extends \OC_FileProxy {
\OC_FileProxy::$enabled = false;
$fileInfo = $view->getFileInfo($path);
\OC_FileProxy::$enabled = $proxyState;
if ($fileInfo['unencrypted_size'] > 0) {
if (isset($fileInfo['unencrypted_size']) && $fileInfo['unencrypted_size'] > 0) {
return $fileInfo['unencrypted_size'];
}
return $size;