diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index 8a860242f2897c27aa44ec5df5945d6ca6bd4161..7a9d8198ae81f857f8b1eeaa751cdb09bd9d1b78 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -139,7 +139,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 )){