[Pkg-owncloud-commits] [php-sabre-vobject] 74/128: Setting the value on new properties after setting the parameters.
David Prévot
taffit at moszumanska.debian.org
Tue May 20 23:11:04 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 239437c681bb933426e08389dcc993709a7712e3
Author: Evert Pot <evert at rooftopsolutions.nl>
Date: Fri Mar 7 15:40:28 2014 -0500
Setting the value on new properties after setting the parameters.
Closes #83.
---
lib/Sabre/VObject/Property.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/Sabre/VObject/Property.php b/lib/Sabre/VObject/Property.php
index 6038f0a..55017a4 100644
--- a/lib/Sabre/VObject/Property.php
+++ b/lib/Sabre/VObject/Property.php
@@ -73,14 +73,14 @@ abstract class Property extends Node {
$this->root = $root;
- if (!is_null($value)) {
- $this->setValue($value);
- }
-
foreach($parameters as $k=>$v) {
$this->add($k, $v);
}
+ if (!is_null($value)) {
+ $this->setValue($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