diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-30 16:13:48 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-30 16:13:48 +0200 |
commit | 31ad1cbdd8884844fb58cd6140fb2a0387ebe5e2 (patch) | |
tree | 3981e3c1b7fc001c38971856bbc050b5c041167d /lib/private/files/cache/homecache.php | |
parent | 2ba5701b1af3ba37061fa0e5fa85aac7abaabea4 (diff) | |
parent | 129d8099b948c0b5c7456af42cf9a618f5f6920d (diff) | |
download | nextcloud-server-31ad1cbdd8884844fb58cd6140fb2a0387ebe5e2.tar.gz nextcloud-server-31ad1cbdd8884844fb58cd6140fb2a0387ebe5e2.zip |
Merge pull request #5365 from owncloud/filesize-improvements-32bit
Add LargeFileHelper / Add CURL filesize workaround / Fix some 32-bit filesize issues
Diffstat (limited to 'lib/private/files/cache/homecache.php')
-rw-r--r-- | lib/private/files/cache/homecache.php | 6 |
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)); } |