[Pkg-owncloud-commits] [php-sabre-vobject] 123/341: Fix <period /> element.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:40 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 35111d3f37e7d4cdd955f1c3513a0cd80a47c69a
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Jan 14 16:05:33 2015 +0100

    Fix <period /> element.
---
 lib/Parser/XML.php                | 5 +++++
 lib/Property/ICalendar/Period.php | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index ae1f104..852daf0 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -176,6 +176,11 @@ class XML extends Parser {
                                 }
                                 break;
 
+                            case 'period':
+                                $propertyType  = 'period';
+                                $propertyValue = [implode('/', $xmlProperty['value'])];
+                                break;
+
                             default:
                                 $propertyType  = static::getTagName($xmlProperty['value'][0]['name']);
                                 $propertyValue = [$xmlProperty['value'][0]['value']];
diff --git a/lib/Property/ICalendar/Period.php b/lib/Property/ICalendar/Period.php
index 6174257..0d79941 100644
--- a/lib/Property/ICalendar/Period.php
+++ b/lib/Property/ICalendar/Period.php
@@ -135,7 +135,7 @@ class Period extends Property {
      */
     function setXmlValue(array $value) {
 
-        parent::setJsonValue($value[0]);
+        parent::setJsonValue($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