Cast '{DAV:}getcontentlength' to number instead of int.

This commit is contained in:
Andreas Fischer 2014-02-16 14:42:59 +01:00
parent 0bae68017e
commit fb4556033a
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
/**
* Returns the size of the node, in bytes
*
* @return int
* @return int|float
*/
public function getSize() {
return $this->info->getSize();

View File

@ -170,7 +170,7 @@ class OC_Connector_Sabre_Server extends Sabre_DAV_Server {
if ($node instanceof Sabre_DAV_IFile) {
$size = $node->getSize();
if (!is_null($size)) {
$newProperties[200][$prop] = (int)$node->getSize();
$newProperties[200][$prop] = 0 + $size;
}
}
break;