quick fix for broken properties

This commit is contained in:
Bjoern Schiessle 2012-07-19 15:03:41 +02:00
parent 708c771296
commit c0e37c7d69
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
public function updateProperties($properties) {
$existing = $this->getProperties(array());
foreach($properties as $propertyName => $propertyValue) {
$propertyName = preg_replace("/^{.*}/", "", $propertyName); // fix broken property name
// If it was null, we need to delete the property
if (is_null($propertyValue)) {
if(array_key_exists( $propertyName, $existing )){