Merge pull request #5925 from derkostka/patch-1

[stable12] Removed cast to integer in getSize
This commit is contained in:
Morris Jobke 2017-08-08 10:40:09 +02:00 committed by GitHub
commit 3313c682bf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**