Fix warning in homecache

This commit is contained in:
Robin Appelman 2014-08-05 15:12:00 +02:00
parent 3d92f963f4
commit 1d8a88dd1b
1 changed files with 3 additions and 0 deletions

View File

@ -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));