diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-05 15:12:00 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-09-05 11:53:23 +0200 |
commit | 1d8a88dd1b16dc7f2d663c4482598c576d8b2ba7 (patch) | |
tree | 6cd4d4043f234bb8bc401910889e9340143b0589 /lib/private/files | |
parent | 3d92f963f4851900e284fdac59a0806c09b20579 (diff) | |
download | nextcloud-server-1d8a88dd1b16dc7f2d663c4482598c576d8b2ba7.tar.gz nextcloud-server-1d8a88dd1b16dc7f2d663c4482598c576d8b2ba7.zip |
Fix warning in homecache
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/cache/homecache.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/cache/homecache.php b/lib/private/files/cache/homecache.php index 06ae62015a5..2b3967c8807 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)); |