mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Cast to number instead of integer in OC\Files\Cache\HomeCache
This commit is contained in:
parent
a34aa1959a
commit
0bae68017e
1 changed files with 4 additions and 2 deletions
6
lib/private/files/cache/homecache.php
vendored
6
lib/private/files/cache/homecache.php
vendored
|
|
@ -36,8 +36,10 @@ class HomeCache extends Cache {
|
|||
$result = \OC_DB::executeAudited($sql, array($id, $this->getNumericStorageId()));
|
||||
if ($row = $result->fetchRow()) {
|
||||
list($sum, $unencryptedSum) = array_values($row);
|
||||
$totalSize = (int)$sum;
|
||||
$unencryptedSize = (int)$unencryptedSum;
|
||||
$totalSize = 0 + $sum;
|
||||
$unencryptedSize = 0 + $unencryptedSum;
|
||||
$entry['size'] += 0;
|
||||
$entry['unencrypted_size'] += 0;
|
||||
if ($entry['size'] !== $totalSize) {
|
||||
$this->update($id, array('size' => $totalSize));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue