Fix warning in homecache
This commit is contained in:
parent
3d92f963f4
commit
1d8a88dd1b
1 changed files with 3 additions and 0 deletions
3
lib/private/files/cache/homecache.php
vendored
3
lib/private/files/cache/homecache.php
vendored
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue