[Pkg-owncloud-commits] [php-sabre-vobject] 203/341: Simplify xmlSerialize for REQUEST-STATUS.
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 13:35:48 UTC 2015
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 8a66a89203c73b660559ba09a1561cf921c5c9c1
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Jan 26 14:54:46 2015 +0100
Simplify xmlSerialize for REQUEST-STATUS.
---
lib/Property/Text.php | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/lib/Property/Text.php b/lib/Property/Text.php
index 0249743..22e57fd 100644
--- a/lib/Property/Text.php
+++ b/lib/Property/Text.php
@@ -302,17 +302,16 @@ class Text extends Property {
// http://tools.ietf.org/html/rfc6321#section-3.4.1.3
if ($this->name === 'REQUEST-STATUS') {
- $value = $this->getJsonValue();
+ $value = $this->getParts();
- $writer->writeElement('code', $value[0][0]);
- $writer->writeElement('description', $value[0][1]);
+ $writer->writeElement('code', $value[0]);
+ $writer->writeElement('description', $value[1]);
- if (isset($value[0][2])) {
- $writer->writeElement('data', $value[0][2]);
+ if (isset($value[2])) {
+ $writer->writeElement('data', $value[2]);
}
- }
- else {
+ } else {
parent::xmlSerializeValue($writer);
}
--
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