summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-10 17:25:16 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-10 17:25:16 +0100
commit022d76c7bb999058803c6f0c41749672e681fab8 (patch)
tree3f33580bbc91c114bb8ffa10f3d29a7c4d8e71f5 /apps/files_encryption/lib
parent3c5185edab2352ce0d825870ce2b4964a28a777b (diff)
downloadnextcloud-server-022d76c7bb999058803c6f0c41749672e681fab8.tar.gz
nextcloud-server-022d76c7bb999058803c6f0c41749672e681fab8.zip
Fixed warning when browsing Shared folder
The virtual "Shared" folder doesn't have an unencrypted_size field. This fix adds a check to prevent warnings in the log.
Diffstat (limited to 'apps/files_encryption/lib')
-rw-r--r--apps/files_encryption/lib/proxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index b7e1599c1fe..bae1fded53d 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -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;