[Pkg-owncloud-commits] [owncloud] 70/134: Fixed warning when browsing Shared folder
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:44:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit b10b8a470b07d5293e101326a08309afdc58d49a
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Mar 10 17:25:16 2014 +0100
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.
Backport of 022d76c from master
---
apps/files_encryption/lib/proxy.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 22b06da..2daf5b2 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -343,7 +343,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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list