Cast '{DAV:}getcontentlength' to number instead of int.
This commit is contained in:
parent
0bae68017e
commit
fb4556033a
|
@ -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
|
* Returns the size of the node, in bytes
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int|float
|
||||||
*/
|
*/
|
||||||
public function getSize() {
|
public function getSize() {
|
||||||
return $this->info->getSize();
|
return $this->info->getSize();
|
||||||
|
|
|
@ -170,7 +170,7 @@ class OC_Connector_Sabre_Server extends Sabre_DAV_Server {
|
||||||
if ($node instanceof Sabre_DAV_IFile) {
|
if ($node instanceof Sabre_DAV_IFile) {
|
||||||
$size = $node->getSize();
|
$size = $node->getSize();
|
||||||
if (!is_null($size)) {
|
if (!is_null($size)) {
|
||||||
$newProperties[200][$prop] = (int)$node->getSize();
|
$newProperties[200][$prop] = 0 + $size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue