summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/cache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-10 16:49:58 +0200
committerRobin Appelman <icewind@owncloud.com>2015-02-11 13:11:28 +0100
commitdc6468c2aa7ea2b75954a3a896b8ea2475769d74 (patch)
tree8430b0fd430ab93314f189ceb69541fde0a19d60 /lib/private/files/cache/cache.php
parent4242dd0d9d3c11a67511ec21c50e5d3a91f66f7f (diff)
downloadnextcloud-server-dc6468c2aa7ea2b75954a3a896b8ea2475769d74.tar.gz
nextcloud-server-dc6468c2aa7ea2b75954a3a896b8ea2475769d74.zip
Cast mtimes and size to int
Diffstat (limited to 'lib/private/files/cache/cache.php')
-rw-r--r--lib/private/files/cache/cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 06a884072e0..48b2b5c024b 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -193,6 +193,9 @@ class Cache {
$file['size'] = $file['unencrypted_size'];
}
$file['permissions'] = (int)$file['permissions'];
+ $file['mtime'] = (int)$file['mtime'];
+ $file['storage_mtime'] = (int)$file['storage_mtime'];
+ $file['size'] = 0 + $file['size'];
}
return $files;
} else {