Skip to content
Snippets Groups Projects
Commit a22f12cf authored by Thomas Müller's avatar Thomas Müller
Browse files

- fixing namespace

- remove property only if present
parent b02a4857
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment