[Pkg-owncloud-commits] [owncloud] 17/34: Fix warning in homecache

David Prévot taffit at moszumanska.debian.org
Fri Oct 17 01:32:16 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 c7f26fa969b3ff1867e8c524fc6862feea4b2ab1
Author: Robin Appelman <icewind at owncloud.com>
Date:   Tue Aug 5 15:12:00 2014 +0200

    Fix warning in homecache
---
 lib/private/files/cache/homecache.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/files/cache/homecache.php b/lib/private/files/cache/homecache.php
index 06ae620..2b3967c 100644
--- a/lib/private/files/cache/homecache.php
+++ b/lib/private/files/cache/homecache.php
@@ -39,6 +39,9 @@ class HomeCache extends Cache {
 				$totalSize = 0 + $sum;
 				$unencryptedSize = 0 + $unencryptedSum;
 				$entry['size'] += 0;
+				if (!isset($entry['unencrypted_size'])) {
+					$entry['unencrypted_size'] = 0;
+				}
 				$entry['unencrypted_size'] += 0;
 				if ($entry['size'] !== $totalSize) {
 					$this->update($id, array('size' => $totalSize));

-- 
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