summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-02-16 01:03:39 +0100
committerAndreas Fischer <bantu@owncloud.com>2014-05-29 16:26:02 +0200
commit0bae68017ee93ec087e04acce83f189f5c3eeea7 (patch)
tree050e52d1605690c9ec9095f207c49ab051fbaab0 /lib
parenta34aa1959aeeb9bc92c71c6f217db80a09cfbbd3 (diff)
downloadnextcloud-server-0bae68017ee93ec087e04acce83f189f5c3eeea7.tar.gz
nextcloud-server-0bae68017ee93ec087e04acce83f189f5c3eeea7.zip
Cast to number instead of integer in OC\Files\Cache\HomeCache
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/homecache.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/files/cache/homecache.php b/lib/private/files/cache/homecache.php
index 2326c46e8d0..f61769f0b9b 100644
--- a/lib/private/files/cache/homecache.php
+++ b/lib/private/files/cache/homecache.php
@@ -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));
}