Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment