From: Bart Visscher Date: Fri, 15 Jun 2012 15:05:10 +0000 (+0200) Subject: Fix webdav property name compare X-Git-Tag: v4.0.3~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0524f6fd3c0c2fdd06a082e4107dad5efc99dacf;p=nextcloud-server.git Fix webdav property name compare --- diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php index b9a17e3b392..c824ad0ead0 100644 --- a/lib/connector/sabre/node.php +++ b/lib/connector/sabre/node.php @@ -129,7 +129,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr } } else { - if( strcmp( $propertyName, "lastmodified")) { + if( strcmp( $propertyName, "lastmodified") === 0) { $this->touch($propertyValue); } else { if(!array_key_exists( $propertyName, $existing )){