Fix warning in homecache

This commit is contained in:
Robin Appelman 2014-08-05 15:12:00 +02:00
parent 3d92f963f4
commit 1d8a88dd1b

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