diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-24 14:40:43 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-24 14:40:43 +0200 |
commit | a22f12cfe0ac6928dea4d5e0d986c10a6b2befc9 (patch) | |
tree | 8facadd4fb0d5ec099993609be568c1b1ef838fb /lib/private/connector | |
parent | b02a4857126337688e8ad40d5f74929d005037ac (diff) | |
download | nextcloud-server-a22f12cfe0ac6928dea4d5e0d986c10a6b2befc9.tar.gz nextcloud-server-a22f12cfe0ac6928dea4d5e0d986c10a6b2befc9.zip |
- fixing namespace
- remove property only if present
Diffstat (limited to 'lib/private/connector')
-rw-r--r-- | lib/private/connector/sabre/filesplugin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php index 46ca14fadcd..ac781825672 100644 --- a/lib/private/connector/sabre/filesplugin.php +++ b/lib/private/connector/sabre/filesplugin.php @@ -13,7 +13,7 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin { // namespace - const NS_OWNCLOUD = 'xmlns:oc="http://owncloud.org/ns'; + const NS_OWNCLOUD = 'http://owncloud.org/ns'; /** * Reference to main server object @@ -56,7 +56,9 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin if ($node instanceof OC_Connector_Sabre_Node) { $fileid_propertyname = '{' . self::NS_OWNCLOUD . '}id'; - unset($requestedProperties[array_search($fileid_propertyname, $requestedProperties)]); + if (array_search($fileid_propertyname, $requestedProperties)) { + unset($requestedProperties[array_search($fileid_propertyname, $requestedProperties)]); + } /** @var $node OC_Connector_Sabre_Node */ $fileId = $node->getFileId(); |