[Pkg-owncloud-commits] [php-sabre-vobject] 144/341: Do not break the default dataflow.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:42 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 69c9f99dc2163618a380ae80c438dd7386e7caa2
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Fri Jan 16 11:58:26 2015 +0100

    Do not break the default dataflow.
    
    We call the parent `getXmlValue` method to not break the default
    dataflow.
---
 lib/Property/Text.php | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/lib/Property/Text.php b/lib/Property/Text.php
index cedbd3c..5e143a6 100644
--- a/lib/Property/Text.php
+++ b/lib/Property/Text.php
@@ -85,7 +85,6 @@ class Text extends Property {
 
     }
 
-
     /**
      * Sets a raw value coming from a mimedir (iCalendar/vCard) file.
      *
@@ -296,7 +295,7 @@ class Text extends Property {
      */
     public function getXmlValue() {
 
-        $val = $this->getParts();
+        $val = parent::getXmlValue();
 
         // Special-casing the REQUEST-STATUS property.
         //
@@ -307,18 +306,18 @@ class Text extends Property {
             $handle = [
                 [
                     'name' => 'code',
-                    'value' => $val[0]
+                    'value' => $val[0][0]
                 ],
                 [
                     'name' => 'description',
-                    'value' => $val[1]
+                    'value' => $val[0][1]
                 ]
             ];
 
-            if(isset($val[2]))
+            if(isset($val[0][2]))
                 $handle[] = [
                     'name' => 'data',
-                    'value' => $val[2]
+                    'value' => $val[0][2]
                 ];
 
             return [$handle];

-- 
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