summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-08 16:39:21 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-08 21:38:10 +0200
commit7c5c257bf69f77cea599bdf641676977009ee162 (patch)
tree55d9924e0144e42b37c0449baa9411a30603de01 /lib/connector
parent0a49bae87aecef9f6d51007fe02a5071b2f662a4 (diff)
downloadnextcloud-server-7c5c257bf69f77cea599bdf641676977009ee162.tar.gz
nextcloud-server-7c5c257bf69f77cea599bdf641676977009ee162.zip
Comment layout and spelling fixes
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/node.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index a7d1de8b953..bb367a18c42 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -137,7 +137,9 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
/**
* Returns a list of properties for this nodes.;
*
- * The properties list is a list of propertynames the client requested, encoded as xmlnamespace#tagName, for example: http://www.example.org/namespace#author
+ * The properties list is a list of propertynames the client requested,
+ * encoded as xmlnamespace#tagName, for example:
+ * http://www.example.org/namespace#author
* If the array is empty, all properties should be returned
*
* @param array $properties
@@ -153,11 +155,11 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
$existing[$row['propertyname']] = $row['propertyvalue'];
}
+ // if the array was empty, we need to return everything
if(count($properties) == 0){
return $existing;
}
- // if the array was empty, we need to return everything
$props = array();
foreach($properties as $property) {
if (isset($existing[$property])) $props[$property] = $existing[$property];