Return null if file size is negative for WebDAV, fix #2013

This commit is contained in:
Michael Gapczynski 2013-05-27 11:35:31 -04:00
parent c41305d467
commit 0953b68556
1 changed files with 5 additions and 2 deletions

View File

@ -106,8 +106,11 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
*/ */
public function getSize() { public function getSize() {
$this->getFileinfoCache(); $this->getFileinfoCache();
if ($this->fileinfo_cache['size'] > -1) {
return $this->fileinfo_cache['size']; return $this->fileinfo_cache['size'];
} else {
return null;
}
} }
/** /**