From 09b120c6dafa9327b2c2b61efcb59376b944d622 Mon Sep 17 00:00:00 2001 From: Sebastian Kostka Date: Sat, 29 Jul 2017 07:40:13 +0200 Subject: [PATCH] [Stable 12] Removed cast to integer in getSize Fixes - Wrong or no sizes of files/folders #5031 for 32-bit systems a direct cast to integer causes problems. Backport from #5744 Signed-off-by: Sebastian Kostka --- lib/private/Files/FileInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php index e1b5bf983c..f5a44ba02e 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; } /**