aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/filesplugin.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-23 16:40:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-23 16:40:29 +0200
commitb02a4857126337688e8ad40d5f74929d005037ac (patch)
tree1977e31bbce8fbaa55d3892c61760d03fa403d13 /lib/private/connector/sabre/filesplugin.php
parentb60ae11db8b49aa2a06116625de07fa03349a8e3 (diff)
downloadnextcloud-server-b02a4857126337688e8ad40d5f74929d005037ac.tar.gz
nextcloud-server-b02a4857126337688e8ad40d5f74929d005037ac.zip
handle case where fileid is not set
Diffstat (limited to 'lib/private/connector/sabre/filesplugin.php')
-rw-r--r--lib/private/connector/sabre/filesplugin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index c9d43a038db..46ca14fadcd 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -59,7 +59,10 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin
unset($requestedProperties[array_search($fileid_propertyname, $requestedProperties)]);
/** @var $node OC_Connector_Sabre_Node */
- $returnedProperties[200][$fileid_propertyname] = $node->getFileId();
+ $fileId = $node->getFileId();
+ if (!is_null($fileId)) {
+ $returnedProperties[200][$fileid_propertyname] = $fileId;
+ }
}