Commit 8d4e63dd authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #12242 from owncloud/fix-undefined-size

Check if the size field is available
parents 230e517f 6535540d
......@@ -122,7 +122,7 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
* @return int
*/
public function getSize() {
return $this->data['size'];
return isset($this->data['size']) ? $this->data['size'] : 0;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment