[Pkg-owncloud-commits] [php-sabre-vobject] 34/43: added comment

David Prévot taffit at moszumanska.debian.org
Fri Oct 10 14:16:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 134374e0a39c4315dd28bd3714d1afcb00d98988
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Thu Oct 2 17:08:40 2014 +0200

    added comment
---
 lib/Parameter.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/Parameter.php b/lib/Parameter.php
index 4200600..c9de363 100644
--- a/lib/Parameter.php
+++ b/lib/Parameter.php
@@ -58,6 +58,10 @@ class Parameter extends Node {
             $this->noName = true;
             $this->name = static::guessParameterNameByValue($value);
         }
+
+        // If guessParameterNameByValue() returns an empty string
+        // above, we're actually dealing with a parameter that has no value.
+        // In that case we have to move the value to the name.
         if ($this->name === '') {
             $this->noName = false;
             $this->name = strtoupper($value);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list