summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-18 23:43:09 +0200
committerGitHub <noreply@github.com>2017-07-18 23:43:09 +0200
commit5accbf55680512d53aff917263bd7d6ac10e91e9 (patch)
tree41415e1ca3fe007d3cfb2628c689d0adb961995d
parenta5495b8ef1b8c68e069ac1ff3494f56bd8cfac6f (diff)
parent3e5d590f1e40dcccaf0167a37ba7bb1afff1bfe9 (diff)
downloadnextcloud-server-5accbf55680512d53aff917263bd7d6ac10e91e9.tar.gz
nextcloud-server-5accbf55680512d53aff917263bd7d6ac10e91e9.zip
Merge pull request #5744 from 1manprojects/patch-1
Removed cast to integer in getSize
-rw-r--r--lib/private/Files/FileInfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php
index e1b5bf983ce..f5a44ba02ea 100644
--- a/lib/private/Files/FileInfo.php
+++ b/lib/private/Files/FileInfo.php
@@ -193,7 +193,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
*/
public function getSize() {
$this->updateEntryfromSubMounts();
- return isset($this->data['size']) ? (int) $this->data['size'] : 0;
+ return isset($this->data['size']) ? 0 + $this->data['size'] : 0;
}
/**