Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
8d4e63dd
Commit
8d4e63dd
authored
Nov 18, 2014
by
Lukas Reschke
Browse files
Merge pull request #12242 from owncloud/fix-undefined-size
Check if the size field is available
parents
230e517f
6535540d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/files/fileinfo.php
View file @
8d4e63dd
...
...
@@ -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
;
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment